mourne_rcpp_fw/app/mourne_user_controller.h

27 lines
767 B
C++

#ifndef MOURNE_USER_CONTROLLER_H
#define MOURNE_USER_CONTROLLER_H
#include "modules/users/user_controller.h"
#include <string>
#include "modules/users/user.h"
class Request;
class FormValidator;
class MourneUserController : public UserController {
RCPP_OBJECT(MourneUserController, UserController);
public:
void render_login_request_default(Request *request, LoginRequestData *data);
void render_register_request_default(Request *request, RegisterRequestData *data);
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);
virtual void create_test_users();
MourneUserController();
~MourneUserController();
};
#endif