Skip to content
Snippets Groups Projects
Commit d47cdc3c authored by Robin Appelman's avatar Robin Appelman
Browse files

fix changing passwords

parent 5a26640f
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,8 @@ 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{
OC_Crypt::changekeypasscode($_POST["password"]);
}else{
echo json_encode(array("status" => "error", "data" => array("message" => $l->t("Unable to change password"))));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment