diff options
author | Simon Rettberg | 2022-05-02 18:49:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-02 18:49:09 +0200 |
commit | 5eb8df7432a708284862e4b126e418265d36b4ab (patch) | |
tree | d8812cc2bd6245e0b02ca6866a4c14e977e1bb62 /inc/crypto.inc.php | |
parent | [rebootcontrol] Show time of execution for WOL/reboot/shutdown (diff) | |
download | slx-admin-5eb8df7432a708284862e4b126e418265d36b4ab.tar.gz slx-admin-5eb8df7432a708284862e4b126e418265d36b4ab.tar.xz slx-admin-5eb8df7432a708284862e4b126e418265d36b4ab.zip |
[inc/Util] Add types, move error printing functions to their own class
Diffstat (limited to 'inc/crypto.inc.php')
-rw-r--r-- | inc/crypto.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/crypto.inc.php b/inc/crypto.inc.php index d3dd60dc..eb0d344f 100644 --- a/inc/crypto.inc.php +++ b/inc/crypto.inc.php @@ -13,7 +13,7 @@ class Crypto $salt = substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 16); $hash = crypt($password, '$6$' . $salt); - if (strlen($hash) < 60) Util::traceError('Error hashing password using SHA-512'); + if (strlen($hash) < 60) ErrorHandler::traceError('Error hashing password using SHA-512'); return $hash; } |