From af59a88eb03eccac9687f18e6ea35585337e9017 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 --- 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 9ee74c1..7d174ee 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10503,6 +10503,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) -- 1.7.10.4