mourne_rcpp_fw/app/mourne_user_controller.h

27 lines
772 B
C
Raw Normal View History

#ifndef MOURNE_USER_CONTROLLER_H
#define MOURNE_USER_CONTROLLER_H
2022-02-05 23:02:06 +01:00
#include "web_modules/users/user_controller.h"
#include <string>
2022-02-05 23:02:06 +01:00
#include "web_modules/users/user.h"
class Request;
class FormValidator;
class MourneUserController : public UserController {
2021-10-31 14:33:22 +01:00
RCPP_OBJECT(MourneUserController, UserController);
public:
void render_login_request_default(Request *request, LoginRequestData *data);
void render_register_request_default(Request *request, RegisterRequestData *data);
2021-10-31 10:28:19 +01:00
void render_login_success(Request *request);
void render_already_logged_in_error(Request *request);
void render_settings_request(Ref<User> &user, Request *request, SettingsRequestData *data);
2022-02-05 23:02:06 +01:00
void create_default_entries();
MourneUserController();
~MourneUserController();
};
#endif