mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
Improve email validation (still not rfc compliant tbh)
This commit is contained in:
parent
b34b75ff9d
commit
99d9b401a2
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ if(isset( $_POST['user'],$_POST['pass1'],$_POST['pass2'],$_POST['sex'],$_POST['e
|
|||
array_push($problems, "The password cannot have the username within it!.");
|
||||
|
||||
|
||||
if(!preg_match('/^[A-Za-z0-9]*\@[A-Za-z0-9]*\.[A-Za-z0-9]{1,4}$/',$email))
|
||||
if(!preg_match('/^[A-Za-z0-9_.+-]*\@[A-Za-z0-9_.+-]*\.[A-Za-z0-9_.+-]{1,4}$/',$email))
|
||||
array_push($problems, "Email does not appear valid, you will not be able sign in without getting the login mail.");
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue