[open-ils-commits] r16512 - trunk/Open-ILS/web/js/ui/default/actor/user (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed May 26 16:32:56 EDT 2010
Author: phasefx
Date: 2010-05-26 16:32:51 -0400 (Wed, 26 May 2010)
New Revision: 16512
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
have new patron editor honor global.password_regex
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-05-26 20:32:50 UTC (rev 16511)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-05-26 20:32:51 UTC (rev 16512)
@@ -73,6 +73,7 @@
}
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 @@
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 = "";
More information about the open-ils-commits
mailing list