@@ -, +, @@ --- installer/data/mysql/en/mandatory/sample_notices.sql | 4 +++- opac/opac-password-recovery.pl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) --- a/installer/data/mysql/en/mandatory/sample_notices.sql +++ a/installer/data/mysql/en/mandatory/sample_notices.sql @@ -143,4 +143,6 @@ Thank you. Your library.' ); -INSERT INTO `letter` VALUES ('members','PASSWORD_RESET','','Online password reset',1,'Koha password recovery','\r\n

This email has been sent in response to your password recovery request for the account << borrowers.userid>>.\r\n

\r\n

\r\nYou can now create your new password using the following link:\r\n
>\"><>\r\n

\r\n

This link will be valid for 2 days from this email\'s reception, then you must reapply if you do not change your password.

\r\n

Thank you.

\r\n\r\n','email'); +INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, message_transport_type) +VALUES ('members','PASSWORD_RESET','','Online password reset',1,'Koha password recovery','\r\n

This email has been sent in response to your password recovery request for the account << borrowers.userid>>.\r\n

\r\n

\r\nYou can now create your new password using the following link:\r\n
>\"><>\r\n

\r\n

This link will be valid for 2 days from this email\'s reception, then you must reapply if you do not change your password.

\r\n

Thank you.

\r\n\r\n','email' +); --- a/opac/opac-password-recovery.pl +++ a/opac/opac-password-recovery.pl @@ -10,12 +10,12 @@ use C4::Members qw(changepassword GetMember GetMemberDetails ); use C4::Output; use C4::Context; use Koha::AuthUtils qw(hash_password); - my $query = new CGI; +use HTML::Entities; my ( $template, $dummy, $cookie ) = get_template_and_user( { - template_name => "opac-password-recovery.tmpl", + template_name => "opac-password-recovery.tt", query => $query, type => "opac", authnotrequired => 1, --