Skip to content

Commit 2e7aa88

Browse files
ENGCOM-5500: additional check for correct version of sodium #23866
- Merge Pull Request #23866 from matei/magento2:fix-issue-23405 - Merged commits: 1. 856d3e9
2 parents 80ae9bd + 856d3e9 commit 2e7aa88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Encryption/Encryptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function __construct(
162162
*/
163163
public function getLatestHashVersion(): int
164164
{
165-
if (extension_loaded('sodium')) {
165+
if (extension_loaded('sodium') && defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13')) {
166166
return self::HASH_VERSION_ARGON2ID13;
167167
}
168168

0 commit comments

Comments
 (0)