Skip to content

Commit

Permalink
Don't send new password if email sending fails #818
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Sep 28, 2018
1 parent 450de2e commit 0148609
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions adm_program/system/lost_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@
}
catch(AdmException $e)
{
if(is_object($user))
{
// reset the column usr_new_password
$user->setPassword('', true, false);
$user->setValue('usr_activation_code', '');
$user->saveChangesWithoutRights();
$user->save(false);
}

$e->showHtml();
// => EXIT
}
Expand Down

0 comments on commit 0148609

Please sign in to comment.