DAO - Полное завершение класса

This commit is contained in:
Антон
2025-09-15 08:12:34 +03:00
parent 4b2566b49d
commit 8c1431165c
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ bool MemoryAuthDAO::Logout(const std::string& auth_token)
{
string user_uuid = auth_tokens_to_users_uuids_[auth_token];
if (!HasAuthorizedUser()) return false;
if (!HasAuthorized(auth_token)) return false;
users_uuids_to_auth_tokens_.erase(user_uuid);
auth_tokens_to_users_uuids_.erase(auth_token);