have new patron editor honor global.password_regex
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 26 May 2010 20:32:51 +0000 (20:32 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 26 May 2010 20:32:51 +0000 (20:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16512 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/actor/user/register.js

index 0dd3321..63428da 100644 (file)
@@ -73,6 +73,7 @@ function load() {
     }
 
     orgSettings = fieldmapper.aou.fetchOrgSettingBatch(staff.ws_ou(), [
+        'global.password_regex',
         'global.juvenile_age_threshold',
         'patron.password.use_phone',
         'ui.patron.default_inet_access_level',
@@ -442,6 +443,12 @@ function fleshFMRow(row, fmcls, args) {
         disabled : disabled
     };
 
+    if(fmcls == 'au' && fmfield == 'passwd') {
+        if (orgSettings['global.password_regex']) {
+            dijitArgs.regExp = orgSettings['global.password_regex'];
+        }
+    }
+
     // TODO RSN: Add Setting!
     if(fmcls == 'au' && fmfield == 'dob')
         dijitArgs.popupClass = "";