From d6f708dfab77a0243830c99d366f287385a2fe5e Mon Sep 17 00:00:00 2001 From: Barry Luong Date: Thu, 15 Aug 2002 22:22:07 +0000 Subject: [PATCH] added some checks for email and password entry svn path=/trunk/boinc/; revision=343 --- html/user/login_action.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/html/user/login_action.php b/html/user/login_action.php index 93c3dec28a..81177c3014 100644 --- a/html/user/login_action.php +++ b/html/user/login_action.php @@ -36,7 +36,21 @@ $user = mysql_fetch_object($result); mysql_free_result($result); } - if ($user) { + if (strlen($HTTP_POST_VARS["new"]) == 0) { + page_head("Creating Account"); + printf( + TABLE2."\n" + ."You must enter an email address to create an account.\n" + ."\n" + ."" + ); + } else if (strlen($HTTP_POST_VARS["new_password"]) == 0) { + page_head("Creating Account"); + printf( + TABLE2."\n" + ."You must enter a web password to create an account.\n" + ); + } else if ($user) { page_head("Creating Account"); printf( TABLE2."\n"