From a8e7437eef1a10d3ab5bed9f5ef6b266f5d8525e Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2023 23:28:25 +0100 Subject: [PATCH] now? --- web/models/User.model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/models/User.model.php b/web/models/User.model.php index 6deb32c..ff26988 100644 --- a/web/models/User.model.php +++ b/web/models/User.model.php @@ -30,12 +30,12 @@ class User extends Model { $_SESSION['user'] = $this; $_SESSION['userid'] = $this->id; - - - $_SESSION['user']->save(); + $_SESSION['user']->validate(); var_dump($_SESSION['user']); exit(); + + $_SESSION['user']->save(); } function logout()