summaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-09-28 07:22:23 +0200
committerterry%mozilla.org <>1999-09-28 07:22:23 +0200
commit2dff792d06f67fb76382b59a5dbe6d3ad601be89 (patch)
treee3c2902631d7b459ae004399ebc67d9dcbab0161 /createaccount.cgi
parent92cee2c383c4e44693b69ed45390af31b4aca09d (diff)
downloadbugzilla-2dff792d06f67fb76382b59a5dbe6d3ad601be89.tar.gz
bugzilla-2dff792d06f67fb76382b59a5dbe6d3ad601be89.tar.xz
Patch by holger@holger.om.org (Holger Schurig) -- was displaying header twice in some cases.
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index cc9bdd018..8451ab4b0 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -41,19 +41,20 @@ Content-type: text/html
";
-PutHeader("Create a new bugzilla account");
my $login = $::FORM{'login'};
my $realname = $::FORM{'realname'};
if (defined $login) {
CheckEmailSyntax($login);
if (DBname_to_id($login) != 0) {
+ PutHeader("Account exists");
print "A bugzilla account for the name <tt>$login</tt> already\n";
print "exists. If you have forgotten the password for it, then\n";
print "<a href=query.cgi?GoAheadAndLogIn>click here</a> and use\n";
print "the <b>E-mail me a password</b> button.\n";
exit;
}
+ PutHeader("Account created");
my $password = InsertNewUser($login, $realname);
MailPassword($login, $password);
print "A bugzilla account for <tt>$login</tt> has been created. The\n";
@@ -64,6 +65,7 @@ if (defined $login) {
exit;
}
+PutHeader("Create a new bugzilla account");
print q{
To create a bugzilla account, all that you need to do is to enter a
legitimate e-mail address. The account will be created, and its