From 8c0d74ece9cb56fd6a4447eb0bee640998669262 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Mon, 17 May 2004 12:38:19 +0000 Subject: [PATCH] check email git-svn-id: http://svn.automattic.com/wordpress/trunk@1293 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/users.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wp-admin/users.php b/wp-admin/users.php index 4b61e1ed9..6f4eea4db 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -57,6 +57,14 @@ case 'adduser': die (__('ERROR: This login is already registered, please choose another one.')); } + /* checking e-mail address */ + if (empty($_POST["email"])) { + die (__("ERROR: please type an e-mail address")); + return false; + } else if (!is_email($_POST["email"])) { + die (__("ERROR: the email address isn't correct")); + return false; + } $user_login = addslashes(stripslashes($user_login)); $pass1 = addslashes(stripslashes($pass1));