Internationalize the subject of emails sent for password recovery.
This commit is contained in:
parent
0c62ee3666
commit
dda8b74734
3 changed files with 8 additions and 1 deletions
|
|
@ -980,7 +980,7 @@ sub emailRecoverPasswordFinish {
|
|||
|
||||
$self->saveParams($userId, 'WebGUI', $authsettings);
|
||||
|
||||
my $mail = WebGUI::Mail::Send->create($session, { to=>$email, subject=>'WebGUI password recovery'});
|
||||
my $mail = WebGUI::Mail::Send->create($session, { to=>$email, subject=>$i18n->get('WebGUI password recovery')});
|
||||
$mail->addText($i18n->get('recover password email text1', 'AuthWebGUI') . $url. ". \n\n".$i18n->get('recover password email text2', 'AuthWebGUI')." \n\n ".$url."?op=auth;method=emailResetPassword;token=$recoveryGuid"."\n\n ". $i18n->get('recover password email text3', 'AuthWebGUI'));
|
||||
$mail->send;
|
||||
return "<h1>". $i18n->get('recover password banner', 'AuthWebGUI')." </h1> <br> <br> <h3>". $i18n->get('email recover password finish message1', 'AuthWebGUI'). $email . $i18n->get('email recover password finish message2', 'AuthWebGUI') . "</h3>";
|
||||
|
|
|
|||
|
|
@ -4123,6 +4123,12 @@ LongTruncOk=1</p>
|
|||
context => q{Title of the template created by the Site Setup screen},
|
||||
},
|
||||
|
||||
'WebGUI password recovery' => {
|
||||
message => q{WebGUI password recovery},
|
||||
lastUpdated => 0,
|
||||
context => q{Title of the template created by the Site Setup screen},
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue