From 3809ca5a385f6cd6591b409a2dc8f4bb3af21caf Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 8 Jan 2022 12:49:34 +0100 Subject: [PATCH] Rename UserController's main handler method to the new proper one. --- core/http/web_root.h | 3 +-- modules/users/user_controller.cpp | 2 +- modules/users/user_controller.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/http/web_root.h b/core/http/web_root.h index 89e421a..c23ffb4 100644 --- a/core/http/web_root.h +++ b/core/http/web_root.h @@ -13,8 +13,7 @@ class Request; -// FileCache -> set up, for this webroot, don't use singleton -// Update the rest of the modules to the new systems +// TODO FileCache -> set up, for this webroot, don't use singleton class WebRoot : public WebRouterNode { RCPP_OBJECT(WebRoot, WebRouterNode); diff --git a/modules/users/user_controller.cpp b/modules/users/user_controller.cpp index e5a043c..95c6b9a 100644 --- a/modules/users/user_controller.cpp +++ b/modules/users/user_controller.cpp @@ -15,7 +15,7 @@ #include "core/hash/sha256.h" -void UserController::handle_request_default(Request *request) { +void UserController::handle_request_main(Request *request) { if (request->session) { Ref u = request->reference_data["user"]; diff --git a/modules/users/user_controller.h b/modules/users/user_controller.h index 5b92644..491d3f3 100644 --- a/modules/users/user_controller.h +++ b/modules/users/user_controller.h @@ -16,7 +16,7 @@ class UserController : public WebNode { RCPP_OBJECT(UserController, WebNode); public: - virtual void handle_request_default(Request *request); + void handle_request_main(Request *request); struct LoginRequestData { String error_str;