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:
friendica 2013-11-18 14:06:34 -08:00
parent b1a4dc7d7e
commit fce5f2042d

View File

@ -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'));