Test if password was auto generated before displaying it in the mail (#675)

This commit is contained in:
Clément Oudot 2014-06-03 08:13:24 +00:00
parent ff6ec5eebd
commit f6cad5438c
2 changed files with 5 additions and 0 deletions

View File

@ -3,9 +3,13 @@
<p>
<lang en="Hello" fr="Bonjour" /> $cn,<br />
<br />
<TMPL_IF NAME="RESET">
<lang en="Your new password is" fr="Votre nouveau mot de passe est" />
<span><img src="cid:key:skins/common/key.png" /></span>
<b>$password</b>
<TMPL_ELSE>
<lang en="Your password was changed." fr="Votre mot de passe a été changé." />
</TMPL_IF>
</p>
<TMPL_INCLUDE NAME="mail_footer.tpl">

View File

@ -430,6 +430,7 @@ sub sendPasswordMail {
filename => $tplfile,
filter => sub { $self->translate_template(@_) }
);
$template->param( RESET => $self->{forceReset} );
$body = $template->output();
$html = 1;
}