BACKEND: fixed missing not-null value

master
Martin Gerhardy 2020-11-30 21:46:14 +01:00
parent efa8408e8e
commit 1b3e84b1d4
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ void SignupHandler::executeWithRaw(ENetPeer* peer, const void* raw, const uint8_
db::UserModel userModel;
userModel.setEmail(email);
userModel.setValidated(false);
userModel.setName(email);
userModel.setPassword(core::pwhash(password, "TODO"));
if (!_dbHandler->insert(userModel)) {
Log::error("Failed to register user for %s", email.c_str());