From e04b43f0add00a1467cd9222e099be3fce2bd6e4 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Thu, 26 Jan 2023 20:10:04 +0100 Subject: [PATCH] use UserModel::createFull() instead of constructor --- Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/UserController.php b/Controllers/UserController.php index aa507e3..2d4933a 100644 --- a/Controllers/UserController.php +++ b/Controllers/UserController.php @@ -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);