From ef5afae9ef7289847b53f9e4791e6e6dfd5d6039 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Sat, 27 Mar 1999 10:28:51 +0000 Subject: Added stuff to make it more obvious how to create an account. --- CGI.pl | 32 +++++++++++++--------- createaccount.cgi | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 3 ++- query.cgi | 1 + 4 files changed, 102 insertions(+), 13 deletions(-) create mode 100755 createaccount.cgi 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 "
Please click back 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 "
Please click back and try again.\n";
- exit;
- }
my $realcryptpwd = PasswordForLogin($::FORM{"Bugzilla_login"});
if (defined $::FORM{"PleaseMailAPassword"}) {
diff --git a/createaccount.cgi b/createaccount.cgi
new file mode 100755
index 000000000..c6bef90cf
--- /dev/null
+++ b/createaccount.cgi
@@ -0,0 +1,79 @@
+#!/usr/bonsaitools/bin/perl -w
+# -*- Mode: perl; indent-tabs-mode: nil -*-
+#
+# The contents of this file are subject to the Mozilla Public License
+# Version 1.0 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+# License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is the Bugzilla Bug Tracking System.
+#
+# The Initial Developer of the Original Code is Netscape Communications
+# Corporation. Portions created by Netscape are Copyright (C) 1998
+# Netscape Communications Corporation. All Rights Reserved.
+#
+# Contributor(s): Terry Weissman
\n";
print "Create a new bug.
\n";
+print "Open a new Bugzilla account
\n";
print "Bug reports
\n";
--
cgit v1.2.3-24-g4f1b