From a5d7b7f9c2ed664ad75dc6244a0629919555e734 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 25 Dec 2024 10:51:08 -0500 Subject: fix auth model --- src/web/_model/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/_model/auth.php') diff --git a/src/web/_model/auth.php b/src/web/_model/auth.php index 50cb367..c975eb4 100644 --- a/src/web/_model/auth.php +++ b/src/web/_model/auth.php @@ -31,7 +31,7 @@ class Auth_model extends XSS_Model { ->eq($user_id) ->row(); // valid JWT, but invalid user - if (!$result) + if (!$user) return NULL; // return session self::$session = array_merge( -- cgit v1.2.3-freya