Check for argon2 support before using constant PASSWORD_ARGON2X (#1228)

This commit is contained in:
sro0
2024-01-16 21:34:17 +01:00
committed by Michael Kaufmann
parent b34ab45746
commit 031596301b
2 changed files with 6 additions and 6 deletions

View File

@@ -426,10 +426,10 @@ class MailsTest extends TestCase
$this->assertEquals(1, $result['popaccountid']);
switch (Settings::Get('system.passwordcryptfunc')) {
case PASSWORD_ARGON2I:
case defined('PASSWORD_ARGON2I') && PASSWORD_ARGON2I:
$cpPrefix = '{ARGON2I}';
break;
case PASSWORD_ARGON2ID:
case defined('PASSWORD_ARGON2ID') && PASSWORD_ARGON2ID:
$cpPrefix = '{ARGON2ID}';
break;
default: