remove unnecessary globals from generatePassword() function
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -18,11 +18,6 @@
|
|||||||
/**
|
/**
|
||||||
* Generates a random password
|
* Generates a random password
|
||||||
*/
|
*/
|
||||||
|
function generatePassword() {
|
||||||
function generatePassword()
|
|
||||||
{
|
|
||||||
global $db, $settings, $theme;
|
|
||||||
|
|
||||||
return substr(md5(uniqid(microtime(), 1)), 24, 10);
|
return substr(md5(uniqid(microtime(), 1)), 24, 10);
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user