Fixed Changing the password had been a mistake, if he was wrong CT#602

skala
Carlos Vargas 15 years ago
parent 4f497c5e9c
commit 8483e2be49
  1. 20
      main/auth/profile.php

@ -556,25 +556,19 @@ $msg_is_not_password = false;
if (!empty($_SESSION['change_email'])) {
$msg_fail_changue_email= ($_SESSION['change_email'] == 'success');
unset($_SESSION['change_email']);
}
elseif (!empty($_SESSION['is_not_password'])) {
} elseif (!empty($_SESSION['is_not_password'])) {
$msg_is_not_password = ($_SESSION['is_not_password'] == 'success');
unset($_SESSION['is_not_password']);
}
elseif (!empty($_SESSION['profile_update'])) {
} elseif (!empty($_SESSION['profile_update'])) {
$update_success = ($_SESSION['profile_update'] == 'success');
unset($_SESSION['profile_update']);
}
elseif (!empty($_SESSION['image_uploaded'])) {
} elseif (!empty($_SESSION['image_uploaded'])) {
$upload_picture_success = ($_SESSION['image_uploaded'] == 'success');
unset($_SESSION['image_uploaded']);
}
elseif (!empty($_SESSION['production_uploaded'])) {
} elseif (!empty($_SESSION['production_uploaded'])) {
$upload_production_success = ($_SESSION['production_uploaded'] == 'success');
unset($_SESSION['production_uploaded']);
}
elseif (isset($_POST['remove_production'])) {
} elseif (isset($_POST['remove_production'])) {
foreach (array_keys($_POST['remove_production']) as $production) {
UserManager::remove_user_production($_user['user_id'], urldecode($production));
}
@ -583,7 +577,9 @@ elseif (isset($_POST['remove_production'])) {
}
$form->removeElement('productions_list');
$file_deleted = true;
} elseif ($form->validate()) {
}
if ($form->validate()) {
$wrong_current_password = false;
// $user_data = $form->exportValues();

Loading…
Cancel
Save