check email

git-svn-id: http://svn.automattic.com/wordpress/trunk@1293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-05-17 12:38:19 +00:00
parent 25532a1681
commit 8c0d74ece9
1 changed files with 8 additions and 0 deletions

View File

@ -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));