Commit 9fc5423b authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3540 Fixed error handling in password recovery

parent 5877efd3
......@@ -171,7 +171,9 @@ class passwordRecovery {
$this->step4();
} elseif (isset($_POST['apply'])) {
$this->step2();
$this->step3();
if ($this->step == 2) { /* No errors */
$this->step3();
}
}
} elseif ($_SERVER["REQUEST_METHOD"] == "GET") {
if (isset($_GET['uniq'])) {
......@@ -610,7 +612,6 @@ class passwordRecovery {
escapeshellarg($this->uid)." ".escapeshellarg($_POST['new_password']), $resarr);
if (count($resarr) > 0) {
$this->message[] = _("External password changer reported a problem: ".join('\n', $resarr));
msg_dialog::displayChecks($this->message);
return;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment