consolidate email validation checks

This commit is contained in:
zotlabs
2017-05-11 19:01:04 -07:00
parent 4f577cbdeb
commit 1de1b58a08
5 changed files with 3 additions and 28 deletions

View File

@@ -31,7 +31,7 @@ function check_account_email($email) {
if(! strlen($email))
return $result;
if((! valid_email($email)) || (! validate_email($email)))
if(! validate_email($email))
$result['message'] .= t('Not a valid email address') . EOL;
elseif(! allowed_email($email))
$result['message'] = t('Your email domain is not among those allowed on this site');