aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-08 17:34:13 +0200
committerSyndamia <kamen@syndamia.com>2025-02-08 17:34:13 +0200
commit2c1952705148b57b39638436f18a739518308ec6 (patch)
treeda9a6cd053b5b84f340aa1477e23b0f82f5c25f8 /views
parent4f658a004e576d9279c2b3dee24e436a353b39d0 (diff)
downloadnowayforward_human-2c1952705148b57b39638436f18a739518308ec6.tar
nowayforward_human-2c1952705148b57b39638436f18a739518308ec6.tar.gz
nowayforward_human-2c1952705148b57b39638436f18a739518308ec6.zip
feat(views/user): Automatically login on register
Diffstat (limited to 'views')
-rw-r--r--views/user/create/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/user/create/index.php b/views/user/create/index.php
index 223ab9b..658d5de 100644
--- a/views/user/create/index.php
+++ b/views/user/create/index.php
@@ -12,6 +12,10 @@
<p class="item success">
Success!
</p>
+ <script type="text/javascript">
+ cookieStorage.setItem("token", "<?= $token ?>");
+ window.location.href = "/";
+ </script>
<?php endif; ?>
<?php endif; ?>