Skip to content

Commit f352e87

Browse files
committed
Always renew apppasswords on login
Else you can end up that you renewed your password (LDAP for example). But they still don't work because you did not use them before you logged in. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 3e35d2c commit f352e87

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

lib/private/Authentication/Token/PublicKeyTokenProvider.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,6 @@ public function markPasswordInvalid(IToken $token, string $tokenId) {
414414
public function updatePasswords(string $uid, string $password) {
415415
$this->cache->clear();
416416

417-
if (!$this->mapper->hasExpiredTokens($uid)) {
418-
// Nothing to do here
419-
return;
420-
}
421-
422417
// Update the password for all tokens
423418
$tokens = $this->mapper->getTokenByUser($uid);
424419
foreach ($tokens as $t) {

0 commit comments

Comments
 (0)