Bug 37324: Self registration complete login form won't login user
This patch fixes the self registration complete login form which appears after a complete self registration process.
To test:
a) open http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationDefaultCategory
b) set PatronSelfRegistration to allow
c) set PatronSelfRegistrationDefaultCategory to Self registration
d) logout or open a private tab
e) http://localhost:8080/cgi-bin/koha/opac-memberentry.pl and enter required fields
f) Registration complete! appears with a prefilled login form. Click Log in.
g) Check you are not logged in
apply patch and redo steps e-f and check that login worked.
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 0988be4a59)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
901c918ff4
commit
0729ee131b
|
|
@ -106,19 +106,20 @@
|
|||
<form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="koha_login_context" value="opac" />
|
||||
<input type="hidden" name="op" value="cud-login">
|
||||
<fieldset class="brief">
|
||||
<legend>Log in to your account:</legend>
|
||||
<label for="userid">Login:</label>
|
||||
[% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
|
||||
<input class="form-control" type="text" id="userid" size="10" name="userid" value="[% borrower.userid | html %]" autocomplete="off" />
|
||||
<input class="form-control" type="text" id="userid" size="10" name="login_userid" value="[% borrower.userid | html %]" autocomplete="off" />
|
||||
[% ELSE %]
|
||||
<input class="form-control" type="text" id="userid" size="10" name="userid" value="" autocomplete="off" />
|
||||
<input class="form-control" type="text" id="userid" size="10" name="login_userid" value="" autocomplete="off" />
|
||||
[% END %]
|
||||
<label for="password">Password:</label>
|
||||
[% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
|
||||
<input class="form-control" type="password" id="password" size="10" name="password" value="[% password_cleartext | html %]" autocomplete="off" />
|
||||
<input class="form-control" type="password" id="password" size="10" name="login_password" value="[% password_cleartext | html %]" autocomplete="off" />
|
||||
[% ELSE %]
|
||||
<input class="form-control" type="password" id="password" size="10" name="password" value="" autocomplete="off" />
|
||||
<input class="form-control" type="password" id="password" size="10" name="login_password" value="" autocomplete="off" />
|
||||
[% END %]
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Log in" class="btn btn-primary" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue