mirror of
https://github.com/friendica/friendica
synced 2024-12-22 17:20:16 +00:00
Don't send password reset emails to deleted user accounts
This commit is contained in:
parent
6df187478d
commit
2d0af812b1
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ function lostpass_post(App $a)
|
|||
DI::baseUrl()->redirect();
|
||||
}
|
||||
|
||||
$condition = ['(`email` = ? OR `nickname` = ?) AND `verified` = 1 AND `blocked` = 0', $loginame, $loginame];
|
||||
$condition = ['(`email` = ? OR `nickname` = ?) AND `verified` = 1 AND `blocked` = 0 AND `account_removed` = 0 AND `account_expired` = 0', $loginame, $loginame];
|
||||
$user = DBA::selectFirst('user', ['uid', 'username', 'nickname', 'email', 'language'], $condition);
|
||||
if (!DBA::isResult($user)) {
|
||||
DI::sysmsg()->addNotice(DI::l10n()->t('No valid account found.'));
|
||||
|
|
Loading…
Reference in a new issue