diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2025-07-18 20:54:07 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2025-07-18 20:55:02 +0200 |
commit | 03c76d86a6d9627d5264b9035813e9ef12310c5d (patch) | |
tree | e74a1c52ce1e8ebe5ea65625bf247f495d4d5235 | |
parent | daeb1e3a67121262c2a6d7b6fd96a9fdb11ad6f7 (diff) | |
download | nextcloud-server-do-not-show-password-dialog-when-user-can-not-validate-password.tar.gz nextcloud-server-do-not-show-password-dialog-when-user-can-not-validate-password.zip |
fix: Do not show password dialog when user can not validate passworddo-not-show-password-dialog-when-user-can-not-validate-password
The password confirmation dialog is always shown unless the user backend
does not allow password confirmation. A user backend may explicitly
provide that information, but even if it does not that could have been
defined in the authentication token with
"IToken::SCOPE_SKIP_PASSWORD_VALIDATION" (for example, when "user_oidc"
is only used for authentication and user provision is done by another
user backend).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r-- | lib/private/Template/JSConfigHelper.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index de9df04ae4b..07e557d0706 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -70,6 +70,8 @@ class JSConfigHelper { $userBackendAllowsPasswordConfirmation = $backend->canConfirmPassword($uid) && $this->canUserValidatePassword(); } elseif (isset($this->excludedUserBackEnds[$this->currentUser->getBackendClassName()])) { $userBackendAllowsPasswordConfirmation = false; + } else { + $userBackendAllowsPasswordConfirmation = $this->canUserValidatePassword(); } } else { $uid = null; |