resetting password tries to update email address even if it didn't change - and if you've got the admin email this spits out a warning.
This commit is contained in:
parent
b1a4dc7d7e
commit
fce5f2042d
@ -319,8 +319,8 @@ function settings_post(&$a) {
|
||||
}
|
||||
|
||||
$email = ((x($_POST,'email')) ? trim(notags($_POST['email'])) : '');
|
||||
$account = $a->get_account();
|
||||
if($email != $account['account_email']) {
|
||||
$account = $a->get_account();
|
||||
if(! valid_email($email))
|
||||
$errs[] = t('Not valid email.');
|
||||
$adm = trim(get_config('system','admin_email'));
|
||||
|
Reference in New Issue
Block a user