more function reducing and fixing

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-21 16:53:04 +01:00
parent 0a28ef2af6
commit a819d81ef2
21 changed files with 125 additions and 179 deletions

View File

@@ -208,7 +208,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
// only check if not empty,
// cause empty == generate password automatically
if ($password != '') {
$password = validatePassword($password, true);
$password = \Froxlor\System\Crypt::validatePassword($password, true);
}
$diskspace = $diskspace * 1024;
@@ -529,7 +529,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
}
if ($password != '') {
$password = validatePassword($password, true);
$password = \Froxlor\System\Crypt::validatePassword($password, true);
$password = \Froxlor\System\Crypt::makeCryptPassword($password);
} else {
$password = $result['password'];