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

This commit is contained in:
Антон
2025-09-06 12:11:46 +03:00
parent dcbcacdd48
commit 20531a6123
+2 -2
View File
@@ -22,9 +22,9 @@ std::string MemoryAuthDAO::Login(const std::string& registrated_user_uuid)
return auth_token;
}
bool MemoryAuthDAO::HasAuthorizedUser(const std::string& auth_token)
bool MemoryAuthDAO::HasAuthorizedUser(const std::string& user_uuid)
{
return auth_tokens_to_users_uuids_.count(auth_token) > 0;
return users_uuids_to_auth_tokens_.count(user_uuid) > 0;
}
bool MemoryAuthDAO::Logout(const std::string& auth_token)