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()