From 3f85b9d67cf7c00f4217ea4645c0ce123b99f225 Mon Sep 17 00:00:00 2001 From: David Roberts Date: Thu, 23 Apr 2015 16:19:34 +0000 Subject: [PATCH] Add default OPACPasswordStrength syspref to updatedatabase.pl http://bugs.koha-community.org/show_bug.cgi?id=13664 Signed-off-by: Tadeasm Signed-off-by: Tadeasm --- installer/data/mysql/updatedatabase.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1dd8c0b..6e5655b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10479,6 +10479,13 @@ foreach my $file ( sort readdir $dirh ) { } } +$DBversion = "XXX"; +if ( CheckVersion($DBversion) ) { + $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('OPACPasswordStrength','0','','Display password strength indicator on OPAC.','YesNo')"); + print "Upgrade to $DBversion done (Bug 13664: Add password strength plugin)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS =head2 TableExists($table) -- 2.1.4