generated from Sithas/conan_template
Рабочая сборка второго executor'а
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "IExecutor.h"
|
||||
#include "../DAO/IUserDAO.h"
|
||||
#include "../DAO/IAuthDAO.h"
|
||||
#include "../helpers/helpers.h"
|
||||
|
||||
namespace uad
|
||||
{
|
||||
@@ -74,6 +75,17 @@ public:
|
||||
|
||||
return res;
|
||||
}
|
||||
auto token = GenerateUUID();
|
||||
auth_dao_->Login(user.value().GetUUID(), token);
|
||||
|
||||
http::response<ResponseType> res{http::status::ok, req.version()};
|
||||
response_body.as_object().emplace("token", token);
|
||||
|
||||
res.body() = serialize(response_body);
|
||||
res.set(http::field::content_type, "application/json");
|
||||
res.content_length(res.body().size());
|
||||
|
||||
return res;
|
||||
}
|
||||
catch (const system::system_error& err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user