[Bug 36430] New: Allow self-registering users to set their own userid
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Bug ID: 36430 Summary: Allow self-registering users to set their own userid Change sponsored?: --- Product: Koha Version: 23.05 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: lucas@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org User's should be able to set their own userid via self registration, currently one cannot. There would need to be a check for uniqueness. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|23.05 |master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|oleonard@myacpl.org |koha-bugs@lists.koha-commun | |ity.org -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |samalau@gmail.com Assignee|koha-bugs@lists.koha-commun |samalau@gmail.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 --- Comment #1 from Sam Lau <samalau@gmail.com> --- Created attachment 170075 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170075&action=edit Bug 36430: Allow self-reg users to set userid This patch adds the ability for patrons to set their userid when self registering. It also gives patrons the ability to request changes to their user id from the OPAC. To test: 1) Apply patch, restart_all 2) Make sure the 'PatronSelfRegistration' system pref is set to allow and make sure you have a 'PatronSelfRegistrationDefaultCategory' category set. 3) Visit the OPAC main page and select 'Create an account' 4) Under the 'Library' section, you should see a new 'Username: ' input. Fill out the required information and leave the username blank. 5) Submit the form. Your userid should automatically be set. Copy/remember this userid that was given to you 6) Create a new account, this time fill in a custom userid with the value given to the patron you just created 7) When submitting, you will see an error message, as the userid is not unique. 8) Change the userid to somethign different and submit the form. 9) Form submits successfully and gives you the desired userid. Log into this account 10) Click the 'Personal details' tab and submit an update request for the username. Ensure this works correctly. 11) Play around with the other self registration system preferences ('PatronSelfRegistration'...) to attempt to hide/require the userid field and ensure they all work properly. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Shi Yao Wang <shi-yao.wang@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #170075|0 |1 is obsolete| | --- Comment #2 from Shi Yao Wang <shi-yao.wang@inLibro.com> --- Created attachment 171981 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171981&action=edit Bug 36430: Allow self-reg users to set userid This patch adds the ability for patrons to set their userid when self registering. It also gives patrons the ability to request changes to their user id from the OPAC. To test: 1) Apply patch, restart_all 2) Make sure the 'PatronSelfRegistration' system pref is set to allow and make sure you have a 'PatronSelfRegistrationDefaultCategory' category set. 3) Visit the OPAC main page and select 'Create an account' 4) Under the 'Library' section, you should see a new 'Username: ' input. Fill out the required information and leave the username blank. 5) Submit the form. Your userid should automatically be set. Copy/remember this userid that was given to you 6) Create a new account, this time fill in a custom userid with the value given to the patron you just created 7) When submitting, you will see an error message, as the userid is not unique. 8) Change the userid to somethign different and submit the form. 9) Form submits successfully and gives you the desired userid. Log into this account 10) Click the 'Personal details' tab and submit an update request for the username. Ensure this works correctly. 11) Play around with the other self registration system preferences ('PatronSelfRegistration'...) to attempt to hide/require the userid field and ensure they all work properly. Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Shi Yao Wang <shi-yao.wang@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |shi-yao.wang@inLibro.com --- Comment #3 from Shi Yao Wang <shi-yao.wang@inLibro.com> --- Does work, but there is an issue: a patron requests to change his/her username to an existing username -> the request goes through -> the library staff accepts the change in the staff interface -> error 500 page Still going to sign-off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36430 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #4 from Lucas Gass <lucas@bywatersolutions.com> --- (In reply to Shi Yao Wang from comment #3)
Does work, but there is an issue: a patron requests to change his/her username to an existing username -> the request goes through -> the library staff accepts the change in the staff interface -> error 500 page
Still going to sign-off
Should probably throw an exception at the script level? I think this is enough of a problem to FQA. Good catch! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org