Setting Patron Barcode Format org unit setting breaks selfcheck
Bug #1485052 reported by
Chris Sharp
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
When using the built-in selfcheck, if you set the Patron Barcode Format setting to something like "^[0-9]+$" (consider any string that is all numbers to be a barcode, not a username), selfcheck login stops functioning. After setting the value as described, I entered my barcode (which shows in the web console as having been recognized as such) and then after entering my password, the Enter key does not function and I am not allowed to log in. Removing the library setting allows login with the username only. Without that setting set, all entries are assumed to be usernames.
Evergreen 2.7.2 through Master
OpenSRF Master
PostgreSQL 9.3
Ubuntu 14.04
To post a comment you must log in.
Open-ILS/ web/js/ ui/base. js is responsible for the initial login of the staff account that will be used for the selfcheck and in it the login is hard coded to use username only. The regex only applies to the patron username or barcode box after that initial staff login; the setting isn't consulted when logging in the staff account.