[Pkg-owncloud-commits] [owncloud] 57/121: fix broken variable name, recoveryPasswordSupported is now recoveryEnabledForUser

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 16:44:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 7aa35e9f248d7c29f1c930aec76658e2a56875da
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Tue Aug 12 15:16:16 2014 +0200

    fix broken variable name, recoveryPasswordSupported is now recoveryEnabledForUser
---
 settings/changepassword/controller.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/settings/changepassword/controller.php b/settings/changepassword/controller.php
index 0527155..ee596c3 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 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list