summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--preferences.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/preferences.php b/preferences.php
index 29b1050..782deb1 100644
--- a/preferences.php
+++ b/preferences.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/preferences.php,v 1.26 2006/04/19 17:11:19 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/preferences.php,v 1.27 2006/04/23 02:10:25 jht001 Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: preferences.php,v 1.26 2006/04/19 17:11:19 spiderr Exp $
+ * $Id: preferences.php,v 1.27 2006/04/23 02:10:25 jht001 Exp $
* @package users
* @subpackage functions
*/
@@ -135,7 +135,8 @@ if (isset($_REQUEST["chgpswd"])) {
$gBitSystem->fatalError( tra( "Invalid old password" ) );
}
//Validate password here
- if (strlen($_REQUEST["pass1"]) < $gBitSystem->getConfig( 'users_min_pass_length', 4 ) ) {
+ $users_min_pass_length = $gBitSystem->getConfig( 'users_min_pass_length', 4 );
+ if (strlen($_REQUEST["pass1"]) < $users_min_pass_length ) {
$gBitSystem->fatalError( tra("Password should be at least"). ' ' . $users_min_pass_length . ' ' . tra("characters long") );
}
// Check this code