Skip to content

Commit cdc308c

Browse files
Merge pull request #52239 from nextcloud/backport/50465/stable29
[stable29] fix: Check that user actually can validate password for js
2 parents af00132 + fb9e36e commit cdc308c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Template/JSConfigHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getConfig(): string {
8686

8787
$backend = $this->currentUser->getBackend();
8888
if ($backend instanceof IPasswordConfirmationBackend) {
89-
$userBackendAllowsPasswordConfirmation = $backend->canConfirmPassword($uid);
89+
$userBackendAllowsPasswordConfirmation = $backend->canConfirmPassword($uid) && $this->canUserValidatePassword();
9090
} elseif (isset($this->excludedUserBackEnds[$this->currentUser->getBackendClassName()])) {
9191
$userBackendAllowsPasswordConfirmation = false;
9292
}

0 commit comments

Comments
 (0)