summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-03-27 11:28:51 +0100
committerterry%netscape.com <>1999-03-27 11:28:51 +0100
commitef5afae9ef7289847b53f9e4791e6e6dfd5d6039 (patch)
tree098fcc4a3e609c9c368fa5c190f2e2be84f4a58b /CGI.pl
parentd8b930fa2293ea58383682c48cf375fa600fc0be (diff)
downloadbugzilla-ef5afae9ef7289847b53f9e4791e6e6dfd5d6039.tar.gz
bugzilla-ef5afae9ef7289847b53f9e4791e6e6dfd5d6039.tar.xz
Added stuff to make it more obvious how to create an account.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl32
1 files changed, 20 insertions, 12 deletions
diff --git a/CGI.pl b/CGI.pl
index 74d383646..fa3acb93e 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -260,6 +260,25 @@ sub quietly_check_login() {
+sub CheckEmailSyntax {
+ my ($addr) = (@_);
+ if ($addr !~ /^[^@, ]*@[^@, ]*\.[^@, ]*$/) {
+ print "Content-type: text/html\n\n";
+
+ print "<H1>Invalid e-mail address entered.</H1>\n";
+ print "The e-mail address you entered\n";
+ print "(<b>$addr</b>) didn't match our minimal\n";
+ print "syntax checking for a legal email address. A legal\n";
+ print "address must contain exactly one '\@', and at least one\n";
+ print "'.' after the \@, and may not contain any commas or.\n";
+ print "spaces.\n";
+ print "<p>Please click <b>back</b> and try again.\n";
+ exit;
+ }
+}
+
+
+
sub confirm_login {
my ($nexturl) = (@_);
@@ -272,19 +291,8 @@ sub confirm_login {
my $enteredlogin = $::FORM{"Bugzilla_login"};
my $enteredpwd = $::FORM{"Bugzilla_password"};
- if ($enteredlogin !~ /^[^@, ]*@[^@, ]*\.[^@, ]*$/) {
- print "Content-type: text/html\n\n";
+ CheckEmailSyntax($enteredlogin);
- print "<H1>Invalid e-mail address entered.</H1>\n";
- print "The e-mail address you entered\n";
- print "(<b>$enteredlogin</b>) didn't match our minimal\n";
- print "syntax checking for a legal email address. A legal\n";
- print "address must contain exactly one '\@', and at least one\n";
- print "'.' after the \@, and may not contain any commas or.\n";
- print "spaces.\n";
- print "<p>Please click <b>back</b> and try again.\n";
- exit;
- }
my $realcryptpwd = PasswordForLogin($::FORM{"Bugzilla_login"});
if (defined $::FORM{"PleaseMailAPassword"}) {