mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:10:10 +00:00
Update and Remove isValidEmail
change function calls, and remove unneeded function.
This commit is contained in:
parent
11cec3229c
commit
e4354a0d7b
5 changed files with 4 additions and 16 deletions
|
@ -499,7 +499,7 @@ class User
|
|||
throw new Exception(L10n::t('Your email domain is not among those allowed on this site.'));
|
||||
}
|
||||
|
||||
if (!Strings::isValidEmail($email) || !Network::isEmailDomainValid($email)) {
|
||||
if (!filter_var($email, FILTER_VALIDATE_EMAIL) || !Network::isEmailDomainValid($email)) {
|
||||
throw new Exception(L10n::t('Not a valid email address.'));
|
||||
}
|
||||
if (self::isNicknameBlocked($nickname)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue