rcpp_framework/modules/users/user.h

34 lines
512 B
C
Raw Normal View History

#ifndef USER_H
#define USER_H
#include "core/string.h"
2021-08-21 16:38:06 +02:00
#include "core/resource.h"
2021-08-21 18:28:29 +02:00
#include <mutex>
class Request;
2021-08-20 18:00:50 +02:00
class FormValidator;
2021-08-21 16:38:06 +02:00
class User : public Resource {
RCPP_OBJECT(User, Resource);
public:
String name_user_input;
String email_user_input;
int rank;
String pre_salt;
String post_salt;
String password_hash;
bool banned;
String password_reset_token;
bool locked;
String to_json(rapidjson::Document *into = nullptr);
void from_json(const String &data);
2021-08-21 18:28:29 +02:00
User();
~User();
};
#endif