From 7b938845cf265114c6cb2b02228ff9d10b676016 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Mon, 10 Mar 2014 06:18:26 -0400 Subject: [PATCH] Added system option to configure minimum password strength and length --- interface/web/js/scrigo.js.php | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index ec7cdb9..be5d44f 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -522,8 +522,13 @@ } - -var pass_minimum_length = 5; +<?php +$min_password_length = 5; +if(isset($server_config_array['misc']['min_password_length'])) { + $min_password_length = $app->functions->intval($server_config_array['misc']['min_password_length']); +} +?> +var pass_minimum_length = <?php echo $min_password_length; ?>; var pass_messages = new Array(); var pass_message = new Array(); -- Gitblit v1.9.1