forked from chookspace/chookchat
Settings
This commit is contained in:
@@ -17,9 +17,10 @@ struct User {
|
||||
uint64_t id = 0;
|
||||
std::string name = "";
|
||||
std::string passwordHash = "";
|
||||
std::string bio = "";
|
||||
|
||||
User(uint64_t id, std::string namein, const std::string& passwordHash) :
|
||||
id(id), passwordHash(passwordHash) {
|
||||
User(uint64_t id, std::string namein, const std::string& passwordHash, const std::string& bio) :
|
||||
id(id), passwordHash(passwordHash), bio(bio) {
|
||||
sanitize(namein);
|
||||
name = namein;
|
||||
}
|
||||
@@ -48,6 +49,8 @@ class Database {
|
||||
|
||||
// this will modify the user to have their user ID
|
||||
void addUser(User& user);
|
||||
void updateUser(const User& user);
|
||||
void invalidateUserSessions(const User& user);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user