Bug 35445: Require OPAC user to confirm self-registration with button push
authorDavid Cook <dcook@prosentient.com.au>
Mon, 4 Dec 2023 05:24:01 +0000 (05:24 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 1 Feb 2024 14:54:02 +0000 (15:54 +0100)
commitd4c38a3776a541f137253fa38e7ec1b24af9508c
treeee6c4351322784bda7b8499176d491afd38cf729
parent517e50fdf1481b8ad2128c8a494b1053271eab6c
Bug 35445: Require OPAC user to confirm self-registration with button push

This change requires the OPAC user to confirm self-registration with
a button push when verifying registration using an emailed token.

Test plan:
0. Apply the patch and koha-plack --reload kohadev
1. Set syspref PatronSelfRegistrationVerifyByEmail to "Don't require"
2. Create a patron using the self-registration on the OPAC
3. Note that no confirmation step is needed when self-registering
4. Set syspref PatronSelfRegistrationVerifyByEmail to "Require"
5. Create a patron using the self-registration on the OPAC
6. Look in message_queue to find the URL with the token to
visit in the browser
7. Visit that URL
8. Note that the page says "Registration pending" and asks you to
click a button labeled "Confirm"
9. Click the button labeled "Confirm"
10. Note that the self-registration is confirmed and details are
shown on the page

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c67067744ce45de2caec5e3df43f5ff021b9770d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt
opac/opac-memberentry.pl
opac/opac-registration-verify.pl