aboutsummaryrefslogtreecommitdiff
path: root/views/list/update
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 13:16:00 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 13:16:00 +0200
commit168abc2c8512343f2a65461c6791ae852ae64665 (patch)
tree746732514621e854cdf7d27cb869aa85518e327a /views/list/update
parent26b368ecc159886ae4122d2b31e307089077f0d3 (diff)
downloadnowayforward_human-168abc2c8512343f2a65461c6791ae852ae64665.tar
nowayforward_human-168abc2c8512343f2a65461c6791ae852ae64665.tar.gz
nowayforward_human-168abc2c8512343f2a65461c6791ae852ae64665.zip
feat: Make require_login return the user object if the token is valid
Diffstat (limited to 'views/list/update')
-rw-r--r--views/list/update/index.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/views/list/update/index.php b/views/list/update/index.php
index 9374aef..e8b562c 100644
--- a/views/list/update/index.php
+++ b/views/list/update/index.php
@@ -1,14 +1,11 @@
<?php
- require_login();
-
+ $user = require_login();
$list = null;
$author = null;
- $user = null;
try {
$list = Database\ArchiveList::fromDB($_GET['lid'] ?? -1);
$author = Database\User::fromDBuid($list->AuthorUID);
- $user = Database\Cookie::fromDB($TOKEN);
}
catch(Exception $e) {}
?>