aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-02-10 21:09:20 +0100
committerGitHub <noreply@github.com>2021-02-10 21:09:20 +0100
commit7bacd710a16ab4ce334aba71e638469f2dad03b5 (patch)
tree05985754f37e9ec4095638beed2332826a69cca3 /lib/private
parentd0cf4e2f584d8b13a14b12361cbedd45a783fe6d (diff)
parentcd457cc68bf72b402b7757d4f039af48f1ac3d3f (diff)
downloadnextcloud-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.php5
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) {