Previously, the selfcheck ignored this setting if it was
set to "False", since the setting value is stored as text
and the truth test always succeeded. Instead, explicitly
check that the setting is "True".
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
var bcHandler = function(barcode_or_usrname) {
// handle patron barcode/usrname entry
- if(self.orgSettings[SET_PATRON_PASSWORD_REQUIRED]) {
+ if(self.orgSettings[SET_PATRON_PASSWORD_REQUIRED] == 'True') {
// password is required. wire up the scan box to read it
self.updateScanBox({
usrname = barcode_or_usrname;
}
- if(this.orgSettings[SET_PATRON_PASSWORD_REQUIRED]) {
+ if(this.orgSettings[SET_PATRON_PASSWORD_REQUIRED] == 'True') {
if(!passwd) {
// would only happen in dev/debug mode when using the patron= param