summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2015-05-05 09:42:53 -0400
committerClark Tomlinson <fallen013@gmail.com>2015-05-05 09:42:53 -0400
commit10d7eb56aff51b17bd79a420edb1c541a588eedd (patch)
tree800ba2eb5be76676bebc7ac70a6bd71a0828899b /settings
parent3ef2e668ac9274d72ea4afb73b708d7b2c88f0d7 (diff)
downloadnextcloud-server-10d7eb56aff51b17bd79a420edb1c541a588eedd.tar.gz
nextcloud-server-10d7eb56aff51b17bd79a420edb1c541a588eedd.zip
adding username as param for isrecoveryenabled
Diffstat (limited to 'settings')
-rw-r--r--settings/changepassword/controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/changepassword/controller.php b/settings/changepassword/controller.php
index e6f928930e9..94323fc2fcc 100644
--- a/settings/changepassword/controller.php
+++ b/settings/changepassword/controller.php
@@ -113,7 +113,7 @@ class Controller {
$recoveryEnabledForUser = false;
if ($recoveryAdminEnabled) {
$validRecoveryPassword = $keyManager->checkRecoveryPassword($recoveryPassword);
- $recoveryEnabledForUser = $recovery->isRecoveryEnabledForUser();
+ $recoveryEnabledForUser = $recovery->isRecoveryEnabledForUser($username);
}
$l = new \OC_L10n('settings');