check email
git-svn-id: https://develop.svn.wordpress.org/trunk@1293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0d1aebb795
commit
bf2e66e951
@ -57,6 +57,14 @@ case 'adduser':
|
||||
die (__('<strong>ERROR</strong>: This login is already registered, please choose another one.'));
|
||||
}
|
||||
|
||||
/* checking e-mail address */
|
||||
if (empty($_POST["email"])) {
|
||||
die (__("<strong>ERROR</strong>: please type an e-mail address"));
|
||||
return false;
|
||||
} else if (!is_email($_POST["email"])) {
|
||||
die (__("<strong>ERROR</strong>: the email address isn't correct"));
|
||||
return false;
|
||||
}
|
||||
|
||||
$user_login = addslashes(stripslashes($user_login));
|
||||
$pass1 = addslashes(stripslashes($pass1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user