mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-01-18 07:32:53 +01:00
Fix email validity check
This commit is contained in:
parent
eb061e3586
commit
9d752514be
@ -326,7 +326,7 @@ function set_page_access($level) {
|
||||
|
||||
function is_valid_email($email) {
|
||||
|
||||
return (!preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $email)) ? FALSE : TRUE;
|
||||
return (!filter_var($email, FILTER_VALIDATE_EMAIL)) ? FALSE : TRUE;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user