summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-02-08 07:11:53 +0100
committerterry%mozilla.org <>2000-02-08 07:11:53 +0100
commit310d90b7d9dd9a4c93c8927f1000d43c771d75ea (patch)
treed14bd4db299c17b1726e3360b816b72a3eef98f4 /CGI.pl
parent88d999247265e0d8884fb55d8f73887c69c40503 (diff)
downloadbugzilla-310d90b7d9dd9a4c93c8927f1000d43c771d75ea.tar.gz
bugzilla-310d90b7d9dd9a4c93c8927f1000d43c771d75ea.tar.xz
Make the "mail a new password" text be a param.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl22
1 files changed, 5 insertions, 17 deletions
diff --git a/CGI.pl b/CGI.pl
index a5c8c7321..39cdbca12 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -578,23 +578,11 @@ sub CheckEmailSyntax {
sub MailPassword {
my ($login, $password) = (@_);
my $urlbase = Param("urlbase");
- my $template = "From: bugzilla-daemon
-To: %s
-Subject: Your bugzilla password.
-
-To use the wonders of bugzilla, you can use the following:
-
- E-mail address: %s
- Password: %s
-
- To change your password, go to:
- ${urlbase}userprefs.cgi
-
- (Your bugzilla and CVS password, if any, are not currently synchronized.
- Top hackers are working around the clock to fix this, as you read this.)
-";
- my $msg = sprintf($template, $login . Param('emailsuffix'),
- $login, $password);
+ my $template = Param("passwordmail");
+ my $msg = PerformSubsts($template,
+ {"mailaddress" => $login . Param('emailsuffix'),
+ "login" => $login,
+ "password" => $password});
open SENDMAIL, "|/usr/lib/sendmail -t";
print SENDMAIL $msg;