From 1cee8ef54bf9806b30f39c1984275c1d82bfbf2c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 11 Jul 2005 07:40:58 +0000 Subject: Bug 299572: Move MailPassword() from CGI.pl into BugMail.pm (and remove an unused variable) - Patch by Frédéric Buclin r=mkanat a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/BugMail.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Bugzilla') 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; -- cgit v1.2.3-24-g4f1b