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"