From b2514c10cb68a67a492086ee1596d4fc497a0288 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Tue, 18 Aug 2015 12:49:10 -0400 Subject: [PATCH] LP#1013786 TPAC add reminder to modify update_pasword_msg.tt2 to global.password_regex 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 Signed-off by: Christine Burns Signed-off-by: Kathy Lussier --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 2 +- .../upgrade/XXXX.schema.password-reset-regex-description.sql | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.password-reset-regex-description.sql diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index bd8aca5d4b..df34ccee61 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -3931,7 +3931,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 index 0000000000..dfbf7e1e84 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.password-reset-regex-description.sql @@ -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; -- 2.11.0