diff options
author | gerv%gerv.net <> | 2002-01-30 08:26:34 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2002-01-30 08:26:34 +0100 |
commit | 7703b328bc570f75edbf287b2b78ef2cbb89996a (patch) | |
tree | f5641f45daffc95c6591350bb528d672433208e1 /CGI.pl | |
parent | 5bbb0f101966acb382e643303129a9057ff49987 (diff) | |
download | bugzilla-7703b328bc570f75edbf287b2b78ef2cbb89996a.tar.gz bugzilla-7703b328bc570f75edbf287b2b78ef2cbb89996a.tar.xz |
Bug 117509 - createaccount.cgi templatisation.
Diffstat (limited to 'CGI.pl')
-rw-r--r-- | CGI.pl | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -747,11 +747,6 @@ sub MailPassword { open SENDMAIL, "|/usr/lib/sendmail -t"; print SENDMAIL $msg; close SENDMAIL; - - print "The password for the e-mail address\n"; - print "$login has been e-mailed to that address.\n"; - print "<p>When the e-mail arrives, you can click <b>Back</b>\n"; - print "and enter your password in the form there.\n"; } @@ -791,9 +786,17 @@ sub confirm_login { # into the database, and email their password to them. if ( defined $::FORM{"PleaseMailAPassword"} && !$userid ) { my $password = InsertNewUser($enteredlogin, ""); + # There's a template for this - account_created.tmpl - but + # it's easier to wait to use it until templatisation has progressed + # further; we want to avoid sprinkling multiple copies of the + # template setup code everywhere - Gerv. print "Content-Type: text/html\n\n"; PutHeader("Account Created"); MailPassword($enteredlogin, $password); + print "The password for the e-mail address\n"; + print "$enteredlogin has been e-mailed to that address.\n"; + print "<p>When the e-mail arrives, you can click <b>Back</b>\n"; + print "and enter your password in the form there.\n"; PutFooter(); exit; } |