generated from Sithas/conan_template
База для ручки PostUserMedicationsExecutor.h
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user