LP#1013786 TPAC add reminder to modify update_pasword_msg.tt2 to global.password_regex user/mrpeters/lp1013786_configure_pw_strength_reminders
authorMichael Peters <mpeters@emeralddata.net>
Tue, 18 Aug 2015 16:49:10 +0000 (12:49 -0400)
committerMichael Peters <mpeters@emeralddata.net>
Tue, 18 Aug 2015 16:49:10 +0000 (12:49 -0400)
Currently, libraries can configure their own password strength regular expressions
via the Library Settings Editor.  This, however, did not provide a reminder
that the message shown to the patron when resetting their password needed to
meet those requirements.

This patch provides a hint in the description of the YAOUS global.password_regex
to remind that update_password_msg.tt2 should be updated with a user-friendly
text string explaining the password requirements if they are changed from the default.

Signed-off-by: Michael Peters <mpeters@emeralddata.net>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.password-reset-regex-description.sql [new file with mode: 0644]

index 0ce75a4..32f6380 100644 (file)
@@ -3922,7 +3922,7 @@ INSERT into config.org_unit_setting_type
         'Password format',
         'coust', 'label'),
     oils_i18n_gettext('global.password_regex',
-        'Regular expression defining the password format',
+        'Regular expression defining the password format.  Note: Be sure to update the update_password_msg.tt2 TPAC template with a user-friendly description of your password strength requirements.',
         'coust', 'description'),
     'string', null)
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.password-reset-regex-description.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.password-reset-regex-description.sql
new file mode 100644 (file)
index 0000000..dfbf7e1
--- /dev/null
@@ -0,0 +1,10 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+UPDATE config.org_unit_setting_type
+SET description = 'Regular expression defining the password format.  Note: Be sure to update the update_password_msg.tt2 TPAC template with a user-friendly description of your password strength requirements.'
+WHERE NAME = 'global.password_regex';
+
+COMMIT;