From afe6a82dc468b9eaa5e00d128b8b4300ce7466fa Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 26 May 2010 20:32:51 +0000 Subject: [PATCH] have new patron editor honor global.password_regex 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index 0dd3321d4..63428da83 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -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 = ""; -- 2.11.0