tbrehm
2011-07-22 c9873b6ece29ef27b1f5d0c0cf0fab460e5f0e8a
interface/lib/classes/auth.inc.php
@@ -123,6 +123,15 @@
         exit;
      }
   }
   public function get_random_password($length = 8) {
      $base64_alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
      $password = '';
      for ($n=0;$n<$length;$n++) {
         $password.=$base64_alphabet[mt_rand(0,63)];
      }
      return $password;
   }
      
}