diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2025-07-18 20:54:07 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-07-29 15:54:57 +0000 |
commit | 6ff15ef5300c57886b2dce3a94334659da973533 (patch) | |
tree | 526996405000eafa097a74bd5cdf5e4e4f278014 | |
parent | f5409c6217e040138e31644e552ddbca4d9c9232 (diff) | |
download | nextcloud-server-backport/54005/stable30.tar.gz nextcloud-server-backport/54005/stable30.zip |
fix: Do not show password dialog when user can not validate passwordbackport/54005/stable30
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 48e7db5fc90..c3052fc5cc8 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -67,6 +67,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; |