[OPEN-ILS-DEV] REGEX login

Grant Johnson FGJohnson at upei.ca
Mon Dec 15 14:56:52 EST 2008


I changed the REGEX in Open-ILS/web/common/js/config.js from

var REGEX_BARCODE = /^d+/; /* starts with a number */
to:
var REGEX_BARCODE = /^d{14}/; /* starts with a number and is 14 digits long */

So our userID's and barcodes can be used to login.

The effect was UserID's (5 -6 digit numbers) now work but our barcode's (14 digits long) do not.

eg.    xxxxx  /  xxxxxxxxxxxxxx = UserID / barcode

Anyone have any helpful comments?
-- 

F. Grant Johnson
  Systems Coordinator
  Robertson Library - UPEI
  566-0630 (w), 393-4920 (c)




More information about the Open-ils-dev mailing list