Merge pull request #3938 from nextcloud/downstream-27201
Defining App "cron" for "Invalidating tokens older than" message
This commit is contained in:
commit
c9231f20e9
|
@ -253,10 +253,10 @@ class DefaultTokenProvider implements IProvider {
|
||||||
*/
|
*/
|
||||||
public function invalidateOldTokens() {
|
public function invalidateOldTokens() {
|
||||||
$olderThan = $this->time->getTime() - (int) $this->config->getSystemValue('session_lifetime', 60 * 60 * 24);
|
$olderThan = $this->time->getTime() - (int) $this->config->getSystemValue('session_lifetime', 60 * 60 * 24);
|
||||||
$this->logger->debug('Invalidating session tokens older than ' . date('c', $olderThan));
|
$this->logger->debug('Invalidating session tokens older than ' . date('c', $olderThan), ['app' => 'cron']);
|
||||||
$this->mapper->invalidateOld($olderThan, IToken::DO_NOT_REMEMBER);
|
$this->mapper->invalidateOld($olderThan, IToken::DO_NOT_REMEMBER);
|
||||||
$rememberThreshold = $this->time->getTime() - (int) $this->config->getSystemValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15);
|
$rememberThreshold = $this->time->getTime() - (int) $this->config->getSystemValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15);
|
||||||
$this->logger->debug('Invalidating remembered session tokens older than ' . date('c', $rememberThreshold));
|
$this->logger->debug('Invalidating remembered session tokens older than ' . date('c', $rememberThreshold), ['app' => 'cron']);
|
||||||
$this->mapper->invalidateOld($rememberThreshold, IToken::REMEMBER);
|
$this->mapper->invalidateOld($rememberThreshold, IToken::REMEMBER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue