Add new services

password_hasher

auth_services
This commit is contained in:
2026-05-03 17:00:32 +03:00
parent 875c692180
commit 0502bd62a4
12 changed files with 352 additions and 58 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <drogon/HttpController.h>
#include <functional>
class AuthService;
class AuthController {
public:
explicit AuthController(AuthService &auth_service);
void register_user(const drogon::HttpRequestPtr &req,
std::function<void(const drogon::HttpResponsePtr &)> &&callback) const;
private:
bool isValidAuthJson(const std::shared_ptr<Json::Value> &req) const;
private:
AuthService &authService_;
};