База для ручки PostUserMedicationsExecutor.h

This commit is contained in:
2026-01-12 09:04:27 +03:00
parent b13f145b4f
commit 5a77e9db8a
6 changed files with 119 additions and 6 deletions
+5
View File
@@ -25,6 +25,11 @@ bool MemoryAuthDAO::HasAuthorized(const std::string& auth_token)
return auth_tokens_to_users_uuids_.count(auth_token) > 0;
}
std::string_view MemoryAuthDAO::GetLogin(const std::string& auth_token)
{
return auth_tokens_to_users_uuids_.at(auth_token);
}
bool MemoryAuthDAO::Logout(const std::string& auth_token)
{
if (!HasAuthorized(auth_token)) return false;