summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-25 10:51:08 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-25 10:51:08 -0500
commita5d7b7f9c2ed664ad75dc6244a0629919555e734 (patch)
treec42d62fa4816434e0bf1358aaaa47311a0525236
parentremove 'rem', make styles more scalable (diff)
downloadxssbook2-a5d7b7f9c2ed664ad75dc6244a0629919555e734.tar.gz
xssbook2-a5d7b7f9c2ed664ad75dc6244a0629919555e734.tar.bz2
xssbook2-a5d7b7f9c2ed664ad75dc6244a0629919555e734.zip
fix auth model
Diffstat (limited to '')
-rw-r--r--src/web/_model/auth.php2
1 files changed, 1 insertions, 1 deletions
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(