summaryrefslogtreecommitdiffstats
path: root/settings/ajax/changepassword.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-08-11 17:49:36 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-08-11 17:49:36 +0200
commitaa582ec43a9060f5f9fba6540d1ea4e24bc70330 (patch)
treeaefed6544e55ccd07b9367c523859387c97d00d3 /settings/ajax/changepassword.php
parent4a334f0d12c70196cb2e09515c7580544e896d98 (diff)
downloadnextcloud-server-aa582ec43a9060f5f9fba6540d1ea4e24bc70330.tar.gz
nextcloud-server-aa582ec43a9060f5f9fba6540d1ea4e24bc70330.zip
more work on encryption
Diffstat (limited to 'settings/ajax/changepassword.php')
-rw-r--r--settings/ajax/changepassword.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/ajax/changepassword.php b/settings/ajax/changepassword.php
index c8c1f740889..750edf17696 100644
--- a/settings/ajax/changepassword.php
+++ b/settings/ajax/changepassword.php
@@ -29,6 +29,7 @@ if( !OC_User::checkPassword( $_SESSION["user_id"], $_POST["oldpassword"] )){
// Change password
if( OC_User::setPassword( $_SESSION["user_id"], $_POST["password"] )){
echo json_encode( array( "status" => "success", "data" => array( "message" => $l->t("Password changed") )));
+ OC_Crypt::changekeypasscode( $_POST["password"]) {
}
else{
echo json_encode( array( "status" => "error", "data" => array( "message" => $l->t("Unable to change password") )));