diff --git a/lib/Froxlor/Api/Commands/EmailAccounts.php b/lib/Froxlor/Api/Commands/EmailAccounts.php index d8799dedec..b69da105ef 100644 --- a/lib/Froxlor/Api/Commands/EmailAccounts.php +++ b/lib/Froxlor/Api/Commands/EmailAccounts.php @@ -157,10 +157,10 @@ public function add() // prefix hash-algo switch (Settings::Get('system.passwordcryptfunc')) { - case defined('PASSWORD_ARGON2I') && PASSWORD_ARGON2I: + case 'argon2i': $cpPrefix = '{ARGON2I}'; break; - case defined('PASSWORD_ARGON2ID') && PASSWORD_ARGON2ID: + case 'argon2id': $cpPrefix = '{ARGON2ID}'; break; default: @@ -404,10 +404,10 @@ public function update() $password = Crypt::validatePassword($password, true); // prefix hash-algo switch (Settings::Get('system.passwordcryptfunc')) { - case defined('PASSWORD_ARGON2I') && PASSWORD_ARGON2I: + case 'argon2i': $cpPrefix = '{ARGON2I}'; break; - case defined('PASSWORD_ARGON2ID') && PASSWORD_ARGON2ID: + case 'argon2id': $cpPrefix = '{ARGON2ID}'; break; default: