<a href="/cgi-bin/koha/opac-tags.pl?mine=1">your tags</a></li>
[% END %]
- [% IF ( OpacPasswordChange ) %]
+ [% IF logged_in_user.category.effective_change_password %]
[% IF ( passwdview ) %]
<li class="active">
[% ELSE %]
</div>
[% END # /IF Error_messages %]
- [% IF ( OpacPasswordChange ) %]
+ [% IF logged_in_user.category.effective_change_password %]
[% IF ( Ask_data ) %]
[% END # /IF Ask_data %]
[% ELSE %]
<div class="alert">You can't change your password.</div>
- [% END # /IF OpacPasswordChange %]
+ [% END # /IF logged_in_user.category.effective_change_password %]
[% IF ( password_updated ) %]
<div class="alert alert-success">
</p>
[% END %]
- <p id="patron-instructions">For your convenience, the login box on this page has been pre-filled with this data. Please log in[% IF OpacPasswordChange %] and change your password[% END %].</p>
+ <p id="patron-instructions">
+ [% IF borrower.category.effective_change_password %]
+ <span>For your convenience, the login box on this page has been pre-filled with this data. Please log in and change your password.</span>
+ [% ELSE %]
+ <span>For your convenience, the login box on this page has been pre-filled with this data. Please log in.</span>
+ [% END %]
+ </p>
[% END %]
<div id="PatronSelfRegistrationAdditionalInstructions">[% PatronSelfRegistrationAdditionalInstructions | $raw %]</div>
}
);
- $template->param( OpacPasswordChange =>
- C4::Context->preference('OpacPasswordChange') );
-
$borrower{categorycode} ||= C4::Context->preference('PatronSelfRegistrationDefaultCategory');
$borrower{password} ||= Koha::AuthUtils::generate_password;
my $consent_dt = delete $borrower{gdpr_proc_consent};
);
my $patron = Koha::Patrons->find( $borrowernumber );
-if ( C4::Context->preference("OpacPasswordChange") ) {
+if ( $patron->category->effective_change_password ) {
if ( $query->param('Oldkey')
&& $query->param('Newkey')
&& $query->param('Confirm') )
}
);
- $template->param(
- OpacPasswordChange => C4::Context->preference('OpacPasswordChange') );
-
my $patron_attrs = $m->unblessed;
$patron_attrs->{password} ||= Koha::AuthUtils::generate_password;
my $consent_dt = delete $patron_attrs->{gdpr_proc_consent};
C4::Form::MessagingPreferences::handle_form_action($cgi, { borrowernumber => $patron->borrowernumber }, $template, 1, C4::Context->preference('PatronSelfRegistrationDefaultCategory') ) if C4::Context->preference('EnhancedMessagingPreferences');
$template->param( password_cleartext => $patron->plain_text_password );
- $template->param( borrower => $patron->unblessed );
+ $template->param( borrower => $patron );
$template->param(
PatronSelfRegistrationAdditionalInstructions =>
C4::Context->preference(