use UserModel::createFull() instead of constructor

This commit is contained in:
Thomas Rubini 2023-01-26 20:10:04 +01:00
parent 68bf0a4c85
commit e04b43f0ad
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -81,7 +81,7 @@ final class UserController
$S_password_hash = password_hash($S_password, PASSWORD_DEFAULT);
$O_user = new UserModel($S_email, $S_username, $S_password_hash, null, date("Y-m-d"), 0, 0);
$O_user = UserModel::createFull($S_email, $S_username, $S_password_hash, self::currentDate(), self::currentDate(), 0, 0);
$O_user->insert();
Session::set_login($O_user->I_ID);