From 6abaa734dbf96b0eed9384e7def206a871966c49 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Tue, 11 Dec 2012 10:13:41 -0500 Subject: [PATCH] LP: #1086064 Ignore spaces in opac username/barcode entry field Too often, patrons copy the spacing on the barcode on their keytag, or enter a spurious space before entering their name/barcode. This change will remove spaces in their name/barcode. (For now, keep the login screen's directions to omit spaces when entering the username/barcode.) Signed-off-by: Dan Pearl Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index 15ffb57296..fdfe3d6079 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -342,6 +342,7 @@ sub load_login { $ctx->{page} = 'login'; my $username = $cgi->param('username'); + $username =~ s/\s//g; # Remove blanks my $password = $cgi->param('password'); my $org_unit = $cgi->param('loc') || $ctx->{aou_tree}->()->id; my $persist = $cgi->param('persist'); -- 2.11.0