4#include <nlohmann/json.hpp>
14 std::size_t
getId() {
return this->id;}
20 bool checkEmail(
const std::string& email,
const std::string& fileName);
25 bool loadFromFile(
const std::string& fileName,
const std::string& emailToFind);
bool checkPassword(const std::string &password)
Definition users.cpp:45
void setAdmin()
Definition user.h:17
User()
Definition users.cpp:4
nlohmann::json saveAsJson()
Definition users.cpp:71
bool checkEmail(const std::string &email, const std::string &fileName)
Definition users.cpp:9
void setUserName(std::string name)
Definition user.h:18
std::string getUserName()
Definition user.h:13
std::string getEmail()
Definition user.h:11
void displayUser()
Definition users.cpp:114
std::string getPassword()
Definition user.h:12
bool loadFromFile(const std::string &fileName, const std::string &emailToFind)
Definition users.cpp:81
bool getIsAdmin()
Definition user.h:15
bool isUserEmpty()
Definition user.h:22
std::size_t getId()
Definition user.h:14
void eraseUser()
Definition users.cpp:124