use UserModel::createFull() instead of constructor
This commit is contained in:
parent
68bf0a4c85
commit
e04b43f0ad
@ -81,7 +81,7 @@ final class UserController
|
|||||||
|
|
||||||
$S_password_hash = password_hash($S_password, PASSWORD_DEFAULT);
|
$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();
|
$O_user->insert();
|
||||||
|
|
||||||
Session::set_login($O_user->I_ID);
|
Session::set_login($O_user->I_ID);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user