Summary: | Add a syspref to redirect patron after self registration | ||
---|---|---|---|
Product: | Koha | Reporter: | Magnus Enger <magnus> |
Component: | Authentication | Assignee: | Magnus Enger <magnus> |
Status: | Failed QA --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | dcook, dpavlin |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Bug 27312 - Add a syspref to redirect patron after self registration |
Description
Magnus Enger
2020-12-29 12:31:26 UTC
Created attachment 114724 [details] [review] Bug 27312 - Add a syspref to redirect patron after self registration We have an authentication workflow that requires redirecting the patron to a URL or path after successfull self registration. See Bugzilla for further details. This patch adds a syspref that takes a full URL or local path, and if this is set, a patron will be redirected after completing the self registration in the OPAC. To test: - Apply this patch, including running the atomic database update - Enable PatronSelfRegistration and set a patron category in PatronSelfRegistrationDefaultCategory - Do a self registration in the OPAC and check it works as expeced - Fill inn a complete URL in RedirectURLAfterPatronSelfReg - Do a new self registration in the OPAC and note that you are redirected to the URL you entered - Check in the staff client that the patron was registered as expected, before being redirected - Sign off It's an interesting idea. However, what if there are multiple authentication methods provided for a system? For instance, perhaps you have several different identity providers? We've had this scenario on more than one occasion. Perhaps it makes sense to re-direct after self-registration to opac-user.pl and to have your authentication method listed there, and then the user can choose the method that makes sense for them. (This also makes it more generalizable for other Koha libraries.) If you wanted to make it smoother and you only had 1 identity provider, perhaps you could automatically redirect again using some Javascript based on the referer... It sounds like David's comments suggest a possible improvement but I don't think it's necessarily a blocker for the patch. I do notice that this feature doesn't work if you have PatronSelfRegistrationVerifyByEmail enabled. If that's intentional there should at least be text in the system preference description that lets the user know. |