浏览代码

fix: Always set last activity if we update the row of an authtoken anyways

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Julius Härtl 4 周之前
父节点
当前提交
04780ae30a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/private/Authentication/Token/PublicKeyTokenProvider.php

+ 2 - 0
lib/private/Authentication/Token/PublicKeyTokenProvider.php

@@ -308,6 +308,8 @@ class PublicKeyTokenProvider implements IProvider {
 		if (!($token instanceof PublicKeyToken)) {
 			throw new InvalidTokenException("Invalid token type");
 		}
+		$now = $this->time->getTime();
+		$token->setLastActivity($now);
 		$this->mapper->update($token);
 		$this->cacheToken($token);
 	}