forked from GNUsocial/gnu-social
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 ' .
|
'have been sent to the email address registered to your ' .
|
||||||
'account.');
|
'account.');
|
||||||
$this->success = true;
|
$this->success = true;
|
||||||
$this->showPage();
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->success = false;
|
$this->success = false;
|
||||||
|
$this->msg = $e->getMessage();
|
||||||
}
|
}
|
||||||
|
$this->showPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetPassword()
|
function resetPassword()
|
||||||
|
@ -1086,7 +1086,7 @@ class User extends Managed_DataObject
|
|||||||
|
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
// TRANS: Information on password recovery form if no known username or e-mail address was specified.
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user