changed username regex
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 19:15:01 +0000 (19:15 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 19:15:01 +0000 (19:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5894 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue_config.js

index f98ab7f..26abc4c 100644 (file)
@@ -40,6 +40,7 @@ var myPerms = [
 var dataFields;
 const numRegex         = /^\d+$/;
 const wordRegex        = /^\w+$/;
+const unameRegex       = /^[a-zA-Z][\.\w\@-]*$/;
 const ssnRegex         = /^\d{3}-\d{2}-\d{4}$/;
 const dlRegex          = /^[a-zA-Z]{2}-\w+/; /* driver's license */
 const phoneRegex       = /^\d{3}-\d{3}-\d{4}(| ex\d+)$/i;
@@ -126,7 +127,7 @@ function uEditDefineData(patron) {
                        errkey  : 'ue_bad_username',
                        widget  : {
                                id              : 'ue_username',
-                               regex   : wordRegex,
+                               regex   : unameRegex,
                                type    : 'input',
                                onblur : uEditUsrnameBlur
                        }