From: <dam...@us...> - 2005-07-18 09:37:03
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20292 Modified Files: Tag: BRANCH-1-9 tiki-admin_include_general.php Log Message: Dont allow blank admin passwords Index: tiki-admin_include_general.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-admin_include_general.php,v retrieving revision 1.29.2.19 retrieving revision 1.29.2.20 diff -u -d -r1.29.2.19 -r1.29.2.20 --- tiki-admin_include_general.php 30 Mar 2005 18:09:31 -0000 1.29.2.19 +++ tiki-admin_include_general.php 18 Jul 2005 09:36:53 -0000 1.29.2.20 @@ -128,6 +128,14 @@ die; } + // Dont allow blank passwords here + if (strlen($_REQUEST["adminpass"]) == 0) { + $smarty->assign("msg", tra("You cannot have a blank password")); + $smarty->display("error.tpl"); + die; + } + + // Validate password here if (strlen($_REQUEST["adminpass"]) < $min_pass_length) { $text = tra("Password should be at least"); |