From: jonl Date: Mon, 16 Jan 2012 18:35:10 +0000 (+0100) Subject: Removed a WTF, changed default password size to 24 X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=f955089284919ddb28a8f0684949eea56e1a63a5;p=hermes Removed a WTF, changed default password size to 24 --- diff --git a/lib/user_functions.php b/lib/user_functions.php index adad1be..1808437 100644 --- a/lib/user_functions.php +++ b/lib/user_functions.php @@ -5,7 +5,7 @@ require_once('lib/db_functions.php'); $config = get_config(); -function generate_password( $length = 32 ) +function generate_password( $length = 24 ) { $string = ""; while ( strlen( $string ) < $length ) diff --git a/user.php b/user.php index 87dbe53..49e8588 100644 --- a/user.php +++ b/user.php @@ -430,7 +430,6 @@ if ( !$config['sql_link'] ) } if ( is_provision_user( $username, $domain ) ) { - print "WTF"; // Update provisioning password if (! update_provision_pw( $username, $domain, $password ) ) {