Fix whitescreen on recoverpassword with unknown user
This commit is contained in:
parent
5365ffc7d0
commit
d1fae16c70
|
@ -288,10 +288,11 @@ class RecoverpasswordAction extends Action
|
|||
'have been sent to the email address registered to your ' .
|
||||
'account.');
|
||||
$this->success = true;
|
||||
$this->showPage();
|
||||
} catch (Exception $e) {
|
||||
$this->success = false;
|
||||
$this->msg = $e->getMessage();
|
||||
}
|
||||
$this->showPage();
|
||||
}
|
||||
|
||||
function resetPassword()
|
||||
|
|
|
@ -1086,7 +1086,7 @@ class User extends Managed_DataObject
|
|||
|
||||
if (!$user) {
|
||||
// TRANS: Information on password recovery form if no known username or e-mail address was specified.
|
||||
throw new ClientError(_('No user with that email address or username.'));
|
||||
throw new ClientException(_('No user with that email address or username.'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user