use generatePassword() for generating passwords as it respects the settings; fix user-modification under freebsd as there is no 'usermod'

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-01-12 20:24:55 +01:00
parent b78729319c
commit 3ee8f6ac25
2 changed files with 6 additions and 2 deletions

View File

@@ -632,7 +632,7 @@ if ($page == 'customers'
}
if ($password == '') {
$password = substr(md5(uniqid(microtime(), 1)), 12, 6);
$password = generatePassword();
}
$_theme = Settings::Get('panel.default_theme');