From d5fa9d53dbb120917349b42e3b9f6d809d398aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Sat, 6 Sep 2025 12:11:46 +0300 Subject: [PATCH] =?UTF-8?q?DAO=20-=20=D0=9F=D0=BE=D0=BB=D0=BD=D0=BE=D0=B5?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DAO/MemoryAuthDAO.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DAO/MemoryAuthDAO.cpp b/src/DAO/MemoryAuthDAO.cpp index b6aaa44..5d4715f 100644 --- a/src/DAO/MemoryAuthDAO.cpp +++ b/src/DAO/MemoryAuthDAO.cpp @@ -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)