summaryrefslogtreecommitdiffstats
path: root/settings/changepassword
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-12 15:16:16 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-12 21:15:55 +0200
commitc67fee3abd4dc05b6adfef3f527b76368e568dd5 (patch)
tree3d018a8ed04eabf18151e9941bb302ffe41b6a85 /settings/changepassword
parent53c5a84eac33fdc1deb0bf5607c1984a258771b0 (diff)
downloadnextcloud-server-c67fee3abd4dc05b6adfef3f527b76368e568dd5.tar.gz
nextcloud-server-c67fee3abd4dc05b6adfef3f527b76368e568dd5.zip
fix broken variable name, recoveryPasswordSupported is now recoveryEnabledForUser
Diffstat (limited to 'settings/changepassword')
-rw-r--r--settings/changepassword/controller.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/changepassword/controller.php b/settings/changepassword/controller.php
index 052715555e5..ee596c3e7ed 100644
--- a/settings/changepassword/controller.php
+++ b/settings/changepassword/controller.php
@@ -56,7 +56,7 @@ class Controller {
$recoveryAdminEnabled = \OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
$validRecoveryPassword = false;
- $recoveryPasswordSupported = false;
+ $recoveryEnabledForUser = false;
if ($recoveryAdminEnabled) {
$validRecoveryPassword = $util->checkRecoveryPassword($recoveryPassword);
$recoveryEnabledForUser = $util->recoveryEnabledForUser();
@@ -74,14 +74,14 @@ class Controller {
)));
} else { // now we know that everything is fine regarding the recovery password, let's try to change the password
$result = \OC_User::setPassword($username, $password, $recoveryPassword);
- if (!$result && $recoveryPasswordSupported) {
+ if (!$result && $recoveryEnabledForUser) {
$l = new \OC_L10n('settings');
\OC_JSON::error(array(
"data" => array(
"message" => $l->t("Back-end doesn't support password change, but the users encryption key was successfully updated.")
)
));
- } elseif (!$result && !$recoveryPasswordSupported) {
+ } elseif (!$result && !$recoveryEnabledForUser) {
$l = new \OC_L10n('settings');
\OC_JSON::error(array("data" => array( "message" => $l->t("Unable to change password" ) )));
} else {