https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25090
--- Comment #44 from Aleisha Amohia <alei...@catalyst.net.nz> --- Created attachment 182965 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182965&action=edit Bug 25090: Enable library to verify OPAC self registrations This enhancement changes the PatronSelfRegistrationVerifyByEmail system preference to have the following options: * don't require (same as 0 previously) * patron verifies (same as 1 previously) * library verifies, based on the EmailPatronRegistrations syspref setting If the syspref is set to "based on the EmailPatronRegistrations" setting, this allows the library to redirect the verification email so that they can essentially moderate accounts that self-register via the OPAC. This enhancement also introduces a new notice OPAC_REG_VERIFY_LIB which includes the new account's details and the verification link. When the library confirms a self-registered account, this triggers a password recovery email to the new patron. To test: 1. Apply patches, install database updates, and restart services (if using ktd, do `koha-upgrade-schema kohadev` then `restart_all`) 2. Go to the staff interface, Koha administration, system preferences. Go to the OPAC tab and find the self-registration and modification section. 3. By default, the PatronSelfRegistrationVerifyByEmail is set to "not required". Change this to "must verify themselves via email". 4. Change EmailPatronRegistrations to anything other than "none" (we're not specifically testing this functionality). 5. Confirm that PatronSelfRegistration is set to "Allow", as are other required preferences (these should be set by default in ktd). 6. Go to the OPAC in another window. You may be automatically logged in, if so, log out. 7. On the homepage, click the "Create an account" link under the login section. 8. Fill in the required fields and submit. 9. In your commandline, go to the database and view the results from the message_queue table (`koha-mysql kohadev` then `select * from message_queue\G`) 10. Confirm there is a queued message to the new account holder with a verification link. Open the verification link in your browser (you may need to swap out the OPACBaseURL if that isn't set correctly) 11. Confirm the account's registration. 12. Repeat step 9. Confirm there is a queued message to whoever you set EmailPatronRegistrations to, confirming a new account was created. 13. Go to your staff interface tab (you may need to log in again). 14. Go to the staff interface, Koha administration, system preferences. Go to the OPAC tab and find the self-registration and modification section. 15. Change PatronSelfRegistrationVerifyByEmail to "must be verified via email sent to EmailPatronRegistrations" 16. Repeat steps 6-9. 17. Confirm there is a queued message to the EmailPatronRegistrations setting with a verification link. Open the verification link in your browser (you may need to swap out the OPACBaseURL if that isn't set correctly) 18. Confirm the account's registration. 19. Confirm the screen says a password recovery email has been generated. 20. Repeat step 9. Confirm there is a queued recovery email message to the new patron. 21. Confirm tests pass t/db_dependent/Koha/Patron/Modifications.t Sponsored-by: Mental Health Education & Resource Centre -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/