Test if password was auto generated before displaying it in the mail (#675)
This commit is contained in:
parent
ff6ec5eebd
commit
f6cad5438c
|
@ -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">
|
||||
|
|
|
@ -430,6 +430,7 @@ sub sendPasswordMail {
|
|||
filename => $tplfile,
|
||||
filter => sub { $self->translate_template(@_) }
|
||||
);
|
||||
$template->param( RESET => $self->{forceReset} );
|
||||
$body = $template->output();
|
||||
$html = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user