Рабочая сборка с третьей ручкой

This commit is contained in:
Антон
2025-09-28 19:57:57 +03:00
parent 91afa176dd
commit 4eaf6ab2a1
+2 -2
View File
@@ -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);