aboutsummaryrefslogtreecommitdiff
path: root/views/list/new
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 09:46:44 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 09:46:44 +0200
commita6f29034d18d5a5ce48d879845cce3544b0f8a3c (patch)
tree8114c4ca6af34e04ecbab67a2359be7d92951db7 /views/list/new
parent40b78735aeba6082363e6a8d98b78da9ba230687 (diff)
downloadnowayforward_human-a6f29034d18d5a5ce48d879845cce3544b0f8a3c.tar
nowayforward_human-a6f29034d18d5a5ce48d879845cce3544b0f8a3c.tar.gz
nowayforward_human-a6f29034d18d5a5ce48d879845cce3544b0f8a3c.zip
feat: Create require_login helper function and improve list update page
Diffstat (limited to 'views/list/new')
-rw-r--r--views/list/new/index.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/views/list/new/index.php b/views/list/new/index.php
index 7f1aaf5..cc680b5 100644
--- a/views/list/new/index.php
+++ b/views/list/new/index.php
@@ -1,12 +1,6 @@
<?php
- if (isset($list_status) && $list_status === "") {
- }
+ require_login();
?>
-<script type="text/javascript">
- if (!cookieStorage.getItem('token')) {
- window.location.href = '/login';
- }
-</script>
<h1>Create a new list</h1>