summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-07-11 09:40:58 +0200
committerlpsolit%gmail.com <>2005-07-11 09:40:58 +0200
commit1cee8ef54bf9806b30f39c1984275c1d82bfbf2c (patch)
tree26490eabff5de280598248ee9228b9182571ff65 /Bugzilla
parent2e4739171044ed04d9d12c9e781ba72e195da153 (diff)
downloadbugzilla-1cee8ef54bf9806b30f39c1984275c1d82bfbf2c.tar.gz
bugzilla-1cee8ef54bf9806b30f39c1984275c1d82bfbf2c.tar.xz
Bug 299572: Move MailPassword() from CGI.pl into BugMail.pm (and remove an unused variable) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/BugMail.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index faa30b090..a1fdefde0 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -658,4 +658,15 @@ sub PerformSubsts ($;$) {
return $str;
}
+# Send the login name and password of the newly created account to the user.
+sub MailPassword ($$) {
+ my ($login, $password) = (@_);
+ my $template = Param("passwordmail");
+ my $msg = PerformSubsts($template,
+ {"mailaddress" => $login . Param('emailsuffix'),
+ "login" => $login,
+ "password" => $password});
+ MessageToMTA($msg);
+}
+
1;