mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
allow SALT only for SHA256_HASH
This commit is contained in:
parent
6b62144090
commit
6e3f741a25
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user