summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-16 16:01:40 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-16 16:01:40 +0200
commitf1a5b8b524531567ba18c6e08a6f7110dcff18d7 (patch)
tree3e277108e66c98e5111eac1c436b4cbe0151838d /settings/ajax
parent8ae30891b3cd5781741ce797b0ff99d68eab7c8d (diff)
downloadnextcloud-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.php2
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 )));
}