fix changing passwords

This commit is contained in:
Robin Appelman 2011-08-12 14:09:43 +02:00
parent 5a26640f63
commit d47cdc3c18
1 changed files with 12 additions and 13 deletions

View File

@ -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"))));
}