]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1887852 Pending patron passwords aren't initially set to phone #
authorDan Briem <dbriem@wlsmail.org>
Fri, 17 Jul 2020 20:09:54 +0000 (16:09 -0400)
committerJason Stephenson <jason@sigio.com>
Mon, 30 Nov 2020 20:23:29 +0000 (15:23 -0500)
commit3521db3ce6dc69f30d0c284db80ed3ab64bbbaf2
treeb770b159562e5e40bb02f9f8bb76b4941210f5d2
parent5dede0bf767c3a7cc54e33691f24b7542e90b1a6
LP#1887852 Pending patron passwords aren't initially set to phone #

If a patron self registers with a phone # and the org unit
setting to use the phone for the password is true, when the
pending patron stage loads the password is initially random
instead of the last 4 digits of the phone #.

This branch sets the password to the last 4 digits of the phone
when the patron stage loads if the phone is set and the org
unit setting to use the phone # for the password is true.

To test:
1. Set org unit settings for allow patron self-registration and
   show day_phone on registration to true
2. Go to the OPAC and request a library card (include phone #)
3. Login to the staff client, Circulation->Pending Patrons and
   load the patron
4. Note the password is random
5. Load patch and repeat steps 3-4
6. Note the password is the last 4 digits of the phone #

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Mike Risher <mrisher@catalyte.io>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js