From 681661900e5dd0e9fa700ab60ae1f949f229fcaf 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

Signed-off-by: Tadeasm <tadeas.moravec@gmail.com>

Signed-off-by: Tadeasm <tadeas.moravec@gmail.com>
---
 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 9fd0de3..2e1eb5f 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 0cbaee0..ca2af0f 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
-- 
2.1.4