mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Check that user actually can validate password for js
Signed-off-by: zorn-v <zorn7@yandex.ru>
This commit is contained in:
parent
85d2ee5262
commit
d0658e85ea
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class JSConfigHelper {
|
|||
|
||||
$backend = $this->currentUser->getBackend();
|
||||
if ($backend instanceof IPasswordConfirmationBackend) {
|
||||
$userBackendAllowsPasswordConfirmation = $backend->canConfirmPassword($uid);
|
||||
$userBackendAllowsPasswordConfirmation = $backend->canConfirmPassword($uid) && $this->canUserValidatePassword();
|
||||
} elseif (isset($this->excludedUserBackEnds[$this->currentUser->getBackendClassName()])) {
|
||||
$userBackendAllowsPasswordConfirmation = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue