diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-02-10 21:09:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 21:09:20 +0100 |
commit | 7bacd710a16ab4ce334aba71e638469f2dad03b5 (patch) | |
tree | 05985754f37e9ec4095638beed2332826a69cca3 /lib/private | |
parent | d0cf4e2f584d8b13a14b12361cbedd45a783fe6d (diff) | |
parent | cd457cc68bf72b402b7757d4f039af48f1ac3d3f (diff) | |
download | nextcloud-server-7bacd710a16ab4ce334aba71e638469f2dad03b5.tar.gz nextcloud-server-7bacd710a16ab4ce334aba71e638469f2dad03b5.zip |
Merge pull request #25460 from nextcloud/fix/apppassword/always_renew
Always renew apppasswords on login
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyTokenProvider.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index 38551e63b87..a293d2a8404 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -414,11 +414,6 @@ class PublicKeyTokenProvider implements IProvider { public function updatePasswords(string $uid, string $password) { $this->cache->clear(); - if (!$this->mapper->hasExpiredTokens($uid)) { - // Nothing to do here - return; - } - // Update the password for all tokens $tokens = $this->mapper->getTokenByUser($uid); foreach ($tokens as $t) { |