diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-05-16 16:01:40 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-05-16 16:01:40 +0200 |
commit | f1a5b8b524531567ba18c6e08a6f7110dcff18d7 (patch) | |
tree | 3e277108e66c98e5111eac1c436b4cbe0151838d /settings/ajax | |
parent | 8ae30891b3cd5781741ce797b0ff99d68eab7c8d (diff) | |
download | nextcloud-server-f1a5b8b524531567ba18c6e08a6f7110dcff18d7.tar.gz nextcloud-server-f1a5b8b524531567ba18c6e08a6f7110dcff18d7.zip |
show nicer warning if the admin recovery password was wrong
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/changepassword.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/changepassword.php b/settings/ajax/changepassword.php index adb730e12c2..6b5bf9c66bd 100644 --- a/settings/ajax/changepassword.php +++ b/settings/ajax/changepassword.php @@ -30,7 +30,7 @@ if(is_null($userstatus)) { $util = new \OCA\Encryption\Util(new \OC_FilesystemView('/'), \OCP\User::getUser()); if ( $recoveryPassword && ! $util->checkRecoveryPassword($recoveryPassword) ) { - OC_JSON::error(array("data" => array( "message" => "Wrong recovery admin password. Please check the password and try again." ))); + OC_JSON::error(array("data" => array( "message" => "Wrong admin recovery password. Please check the password and try again." ))); }elseif(!is_null($password) && OC_User::setPassword( $username, $password, $recoveryPassword )) { OC_JSON::success(array("data" => array( "username" => $username ))); } |