@@ -, +, @@
category
- Verify that all the places in which the 'forgot password' link is
- Attempt to recover the password for a patron that belong to a valid
- Attempt to recover the password for a patron that belongs to a
- Sign off :-D
---
.../intranet-tmpl/prog/en/modules/auth.tt | 3 +-
.../bootstrap/en/includes/masthead.inc | 3 +-
.../bootstrap/en/modules/opac-auth.tt | 3 +-
.../bootstrap/en/modules/opac-main.tt | 3 +-
.../en/modules/opac-password-recovery.tt | 5 +-
opac/opac-password-recovery.pl | 57 +++++++++++--------
6 files changed, 46 insertions(+), 28 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
@@ -1,6 +1,7 @@
[% USE raw %]
[% USE Koha %]
[% USE Branches %]
+[% USE Categories %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Koha ›
@@ -42,7 +43,7 @@
[% IF too_many_login_attempts %]
Error: This account has been locked!
- [% IF Koha.Preference('OpacResetPassword') && Koha.Preference('OpacBaseURL') %]
+ [% IF Categories.can_any_reset_password && Koha.Preference('OpacBaseURL') %]
You must reset your password.
[% END %]
[% ELSIF invalid_username_or_password %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
@@ -1,6 +1,7 @@
[% USE raw %]
[% USE Koha %]
[% USE Branches %]
+[% USE Categories %]
[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt
@@ -1,4 +1,5 @@
[% USE Koha %]
+[% USE Categories %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %] - Forgotten password recovery[% ELSE %]Koha online[% END %] catalog - Forgotten password recovery
[% INCLUDE 'doc-head-close.inc' %]
@@ -77,13 +78,15 @@
[% ELSIF (errLinkNotValid) %]
The link you clicked is either invalid, or expired.
Be sure you used the link from the email, or contact library staff for assistance.
+ [% ELSIF errNoBorrowerFound %]
+
You are not allowed to reset your password. Contact library staff for assistance.
[% END %]
Please contact the library if you need further assistance.
[% END %]
-[% IF (!Koha.Preference('OpacResetPassword')) %]
+[% IF (! Categories.can_any_reset_password ) %]