diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-07-29 12:26:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 12:26:52 +0200 |
commit | 952acd4d276b3190d23e0597c5e01b1dfc4d72bc (patch) | |
tree | a5c0947e8114b80f4ff3bb9968cbec6ec1a797ec /lib/private/Authentication | |
parent | 532ea001a571078f643a70a906e15b32afebde6a (diff) | |
parent | 702445ba3b454f14085710617ec09ce2134a56dc (diff) | |
download | nextcloud-server-952acd4d276b3190d23e0597c5e01b1dfc4d72bc.tar.gz nextcloud-server-952acd4d276b3190d23e0597c5e01b1dfc4d72bc.zip |
Merge pull request #33225 from nextcloud/fix/handle-one-time-passwords
Handle one time password better
Diffstat (limited to 'lib/private/Authentication')
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyTokenProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index d21179a35c1..f9ebe90c890 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -401,7 +401,7 @@ class PublicKeyTokenProvider implements IProvider { $this->cache->clear(); // prevent setting an empty pw as result of pw-less-login - if ($password === '') { + if ($password === '' || !$this->config->getSystemValueBool('auth.storeCryptedPassword', true)) { return; } |