From 168abc2c8512343f2a65461c6791ae852ae64665 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 2 Feb 2025 13:16:00 +0200 Subject: feat: Make require_login return the user object if the token is valid --- views/list/add/index.php | 5 ++--- views/list/delete/index.php | 5 +---- views/list/update/index.php | 5 +---- 3 files changed, 4 insertions(+), 11 deletions(-) (limited to 'views/list') diff --git a/views/list/add/index.php b/views/list/add/index.php index 98c768d..272efda 100644 --- a/views/list/add/index.php +++ b/views/list/add/index.php @@ -1,11 +1,10 @@ archiveLists(); + $list = $user->archiveLists(); $webpage = Database\Webpage::fromDBwid($_GET['wid']); } catch (Exception $e) {} diff --git a/views/list/delete/index.php b/views/list/delete/index.php index 7d5bf5b..02eb37d 100644 --- a/views/list/delete/index.php +++ b/views/list/delete/index.php @@ -1,14 +1,11 @@ AuthorUID); - $user = Database\Cookie::fromDB($TOKEN); } catch(Exception $e) {} ?> 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 @@ AuthorUID); - $user = Database\Cookie::fromDB($TOKEN); } catch(Exception $e) {} ?> -- cgit v1.2.3