aboutsummaryrefslogtreecommitdiff
path: root/views/newlist/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/newlist/index.php')
-rw-r--r--views/newlist/index.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/views/newlist/index.php b/views/newlist/index.php
index 289c9da..72ac7a3 100644
--- a/views/newlist/index.php
+++ b/views/newlist/index.php
@@ -1,5 +1,5 @@
<script type="text/javascript">
- if (!sessionStorage.getItem('token')) {
+ if (!cookieStorage.getItem('token')) {
window.location.href = '/login';
}
</script>
@@ -19,10 +19,5 @@
<input type="text" name="name" placeholder="List title" minlength="1">
<textarea name="description" placeholder="Description"></textarea>
- <input id="token" type="hidden" name="token" value="">
<input type="submit" value="Login">
</form>
-<script type="text/javascript">
- const tokenInput = document.getElementById('token');
- tokenInput.value = sessionStorage.getItem('token');
-</script>