aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-07-13 15:27:55 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-07-28 14:26:25 +0200
commit702445ba3b454f14085710617ec09ce2134a56dc (patch)
tree37bb7fd9841369598657a67fe99075bb0bd225df /lib/private
parent22de24324728025c5299850317fc697b33375caf (diff)
downloadnextcloud-server-702445ba3b454f14085710617ec09ce2134a56dc.tar.gz
nextcloud-server-702445ba3b454f14085710617ec09ce2134a56dc.zip
Handle one time password better
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Authentication/Token/PublicKeyTokenProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php
index 96bf9a86087..26928025b23 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;
}