From 8720d00f856e5b07cb607e7b64e8c1b89b07137d Mon Sep 17 00:00:00 2001 From: simith Date: Mon, 3 Nov 2014 13:07:02 -0500 Subject: [PATCH] Bug 8753 - Add forgot password link to OPAC - Updated --- installer/data/mysql/en/mandatory/sample_notices.sql | 4 +++- opac/opac-password-recovery.pl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/en/mandatory/sample_notices.sql b/installer/data/mysql/en/mandatory/sample_notices.sql index dcb6e8e..2368e35 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.sql +++ b/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' +); diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl index e0dc544..27c8ea6 100755 --- a/opac/opac-password-recovery.pl +++ b/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, -- 1.9.1