From 3d4dc58da98af4d092b04efa295638aba3f8fdf4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 23 Apr 2016 16:05:33 +0100 Subject: [PATCH] Bug 16273: Add the ability not to display the login details for newly registered patrons When a new patron registers, the confirmation page is displayed with login details (login, password, cardnumber) and the login form is prefilled. In the case of public computer, for security reasons that should not appear, patrons might forget to close the window. Test plan: 1/ Set PatronSelfRegistrationPrefillForm on 2/ Register a new patron => The login details should not be displayed and the login form should not be prefilled. Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Nicolas Legrand Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- .../modules/opac-registration-confirmation.tt | 49 ++++++++++++------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt index eb74172dc4..70f2d19fc2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt @@ -32,25 +32,28 @@

Registration Complete!

-

You have successfully registered your new account. To log in, use the following credentials:

+

You have successfully registered your new account.

+ [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %] +

To log in, use the following credentials:

-

- Username: - [% borrower.userid %] -

-

- Password: - [% password_cleartext %] -

- - [% IF borrower.cardnumber %] -

- Card number: - [% borrower.cardnumber %] +

+ Username: + [% borrower.userid %] +

+

+ Password: + [% password_cleartext %]

- [% END %] -

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 %].

+ [% IF borrower.cardnumber %] +

+ Card number: + [% borrower.cardnumber %] +

+ [% END %] + +

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 %].

+ [% END %]
[% PatronSelfRegistrationAdditionalInstructions %]
@@ -67,8 +70,18 @@
Log in to your account: - - + + [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %] + + [% ELSE %] + + [% END %] + + [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %] + + [% ELSE %] + + [% END %]
-- 2.39.5