diff --git a/modules/users/web/web_nodes/user_settings_web_page.cpp b/modules/users/web/web_nodes/user_settings_web_page.cpp index 1c80376fb..8b1c80302 100644 --- a/modules/users/web/web_nodes/user_settings_web_page.cpp +++ b/modules/users/web/web_nodes/user_settings_web_page.cpp @@ -14,25 +14,11 @@ #include "modules/web/http/web_server_cookie.h" #include "modules/web/http/web_server_request.h" -void UserSettingsWebPage::_handle_request_main(Ref request) { - if (_web_permission.is_valid()) { - if (_web_permission->activate(request)) { - return; - } - } +void UserSettingsWebPage::_render_index(Ref request) { + Ref user = request->get_meta("user"); - if (request->get_session().is_valid()) { - Ref u = request->get_meta("user"); + ERR_FAIL_COND(!user.is_valid()); - if (u.is_valid()) { - //handle_request(u, request); - - return; - } - } -} - -void UserSettingsWebPage::handle_settings_request(Ref &user, Ref request) { SettingsRequestData data; if (request->get_method() == HTTPServerEnums::HTTP_METHOD_POST) { diff --git a/modules/users/web/web_nodes/user_settings_web_page.h b/modules/users/web/web_nodes/user_settings_web_page.h index d63505e51..2e5bc5815 100644 --- a/modules/users/web/web_nodes/user_settings_web_page.h +++ b/modules/users/web/web_nodes/user_settings_web_page.h @@ -15,8 +15,6 @@ class UserSettingsWebPage : public UserWebPage { GDCLASS(UserSettingsWebPage, UserWebPage); public: - void _handle_request_main(Ref request); - struct SettingsRequestData { String error_str; @@ -26,7 +24,7 @@ public: String pass_check_val; }; - virtual void handle_settings_request(Ref &user, Ref request); + void _render_index(Ref request); virtual void render_settings_request(Ref &user, Ref request, SettingsRequestData *data); UserSettingsWebPage();