From 8b50ba7f2cafa1ec5bf6b93d6186417e8d926180 Mon Sep 17 00:00:00 2001
From: David Roberts <david.roberts@ptfs-europe.com>
Date: Tue, 5 May 2015 13:18:37 +0000
Subject: [PATCH] Add new PasswordStrength syspref
http://bugs.koha-community.org/show_bug.cgi?id=13664
---
installer/data/mysql/sysprefs.sql | 1 +
.../prog/en/modules/admin/preferences/staff_client.pref | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql
index 81b02d3..f718c15 100644
--- a/installer/data/mysql/sysprefs.sql
+++ b/installer/data/mysql/sysprefs.sql
@@ -331,6 +331,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('OverdueNoticeBcc','','','Email address to bcc outgoing overdue notices sent by email','free'),
('OverdueNoticeCalendar',0,NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
+('PasswordStrength','1',NULL,'If ON, display password strength meter','YesNo'),
('patronimages','0',NULL,'Enable patron images for the Staff Client','YesNo'),
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
('PatronSelfRegistrationAdditionalInstructions','','','A free text field to display additional instructions to newly self registered patrons.','free'),
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
index 17f06c5..e4af95b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
@@ -91,6 +91,12 @@ Staff Client:
- pref: SlipCSS
class: url
- on Issue and Reserve Slips. (This should be a complete URL, starting with <code>http://</code>.)
+ -
+ - pref: PasswordStrength
+ choices:
+ yes: Display
+ no: "Don't display"
+ - password strength indicator in staff client.
Options:
-
- pref: viewMARC
--
1.7.10.4