Update and Remove isValidEmail

change function calls, and remove unneeded function.
This commit is contained in:
Adam Magness 2018-11-09 13:18:42 -05:00
parent 11cec3229c
commit e4354a0d7b
5 changed files with 4 additions and 16 deletions

View file

@ -517,7 +517,7 @@ function settings_post(App $a)
$email = $a->user['email'];
}
// check the email is valid
if (!Strings::isValidEmail($email)) {
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$err .= L10n::t('Invalid email.');
}
// ensure new email is not the admin mail