]> git.defcon.no Git - hermes/commitdiff
Removed a WTF, changed default password size to 24
authorjonl <jonl@sippbx.hig.no>
Mon, 16 Jan 2012 18:35:10 +0000 (19:35 +0100)
committerjonl <jonl@sippbx.hig.no>
Mon, 16 Jan 2012 18:35:10 +0000 (19:35 +0100)
lib/user_functions.php
user.php

index adad1be740cbc3c0b7472ee137c1d8768debb325..180843717388df5547d7883c6e14c2d8bd660a2d 100644 (file)
@@ -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 )
index 87dbe53d811cf1cc8858058beea079c75d282bee..49e858898a987b8bbd4e8ace050c027237918bb6 100644 (file)
--- 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 ) )
                                        {