generated from Sithas/conan_template
Рабочая сборка с третьей ручкой
This commit is contained in:
@@ -27,10 +27,10 @@ bool MemoryAuthDAO::HasAuthorized(const std::string& auth_token)
|
|||||||
|
|
||||||
bool MemoryAuthDAO::Logout(const std::string& auth_token)
|
bool MemoryAuthDAO::Logout(const std::string& auth_token)
|
||||||
{
|
{
|
||||||
string user_uuid = auth_tokens_to_users_uuids_[auth_token];
|
|
||||||
|
|
||||||
if (!HasAuthorized(auth_token)) return false;
|
if (!HasAuthorized(auth_token)) return false;
|
||||||
|
|
||||||
|
string user_uuid = auth_tokens_to_users_uuids_[auth_token];
|
||||||
|
|
||||||
users_uuids_to_auth_tokens_.erase(user_uuid);
|
users_uuids_to_auth_tokens_.erase(user_uuid);
|
||||||
auth_tokens_to_users_uuids_.erase(auth_token);
|
auth_tokens_to_users_uuids_.erase(auth_token);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user