Add some functionality
new handler for Login add errors
This commit is contained in:
@@ -12,9 +12,13 @@ public:
|
||||
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;
|
||||
void login(const drogon::HttpRequestPtr &req,
|
||||
std::function<void(const drogon::HttpResponsePtr &)> &&callback) const;
|
||||
|
||||
private:
|
||||
AuthService &authService_;
|
||||
bool isValidAuthJson(const std::shared_ptr<Json::Value> &req) const;
|
||||
bool isValidLoginJson(const std::shared_ptr<Json::Value> &req) const;
|
||||
|
||||
private:
|
||||
AuthService &auto_servise_;
|
||||
};
|
||||
Reference in New Issue
Block a user