allow SALT only for SHA256_HASH

This commit is contained in:
Yakov Olkhovskiy 2022-05-20 17:21:04 -04:00
parent 6b62144090
commit 6e3f741a25

View File

@ -120,7 +120,7 @@ namespace
return false;
value = ast->as<const ASTLiteral &>().value.safeGet<String>();
if (expect_hash)
if (expect_hash && type == AuthenticationType::SHA256_PASSWORD)
{
if (ParserKeyword{"SALT"}.ignore(pos, expected) && ParserStringLiteral{}.parse(pos, ast, expected))
{