mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
remove optional from auth_result
This commit is contained in:
parent
50da0cb732
commit
43a9194739
@ -521,7 +521,7 @@ std::optional<AuthResult> IAccessStorage::authenticateImpl(
|
||||
{
|
||||
if (auto user = tryRead<User>(*id))
|
||||
{
|
||||
AuthResult auth_result { .user_id = *id, .authentication_data = std::nullopt };
|
||||
AuthResult auth_result { .user_id = *id };
|
||||
if (!isAddressAllowed(*user, address))
|
||||
throwAddressNotAllowed(address);
|
||||
|
||||
|
@ -35,7 +35,7 @@ struct AuthResult
|
||||
UUID user_id;
|
||||
/// Session settings received from authentication server (if any)
|
||||
SettingsChanges settings{};
|
||||
std::optional<AuthenticationData> authentication_data;
|
||||
AuthenticationData authentication_data {};
|
||||
};
|
||||
|
||||
/// Contains entities, i.e. instances of classes derived from IAccessEntity.
|
||||
|
Loading…
Reference in New Issue
Block a user