check email
git-svn-id: http://svn.automattic.com/wordpress/trunk@1293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
25532a1681
commit
8c0d74ece9
|
@ -57,6 +57,14 @@ case 'adduser':
|
||||||
die (__('<strong>ERROR</strong>: This login is already registered, please choose another one.'));
|
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));
|
$user_login = addslashes(stripslashes($user_login));
|
||||||
$pass1 = addslashes(stripslashes($pass1));
|
$pass1 = addslashes(stripslashes($pass1));
|
||||||
|
|
Loading…
Reference in New Issue