Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit595dc8300d81e1cfaae4686c5184fffc2d1f5324 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-26 11:10:18 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-26 11:10:18 +0200
Files2b12bc10830f853729d3e867e47df6881d27a2d3
nowayforward_human-595dc8300d81e1cfaae4686c5184fffc2d1f5324.tar
nowayforward_human-595dc8300d81e1cfaae4686c5184fffc2d1f5324.tar.gz
nowayforward_human-595dc8300d81e1cfaae4686c5184fffc2d1f5324.zip
Parent76de68d2f3600a7000a054be3f595029b1931e20 (diff)
feat(views): Login page logs you in
1 files changed, 6 insertions, 1 deletions
-rw-r--r--views/login/index.php7
diff --git a/views/login/index.php b/views/login/index.php
index 1580cf2..e538319 100644
--- a/views/login/index.php
+++ b/views/login/index.php
@@ -14,8 +14,12 @@
</p>
<?php else: ?>
<p>
- Success! Token: <?php echo $token ?>
+ Success!
</p>
+ <script type="text/javascript">
+ sessionStorage.setItem("token", "<?= $token ?>");
+ window.location.href = "/home/index.php";
+ </script>
<?php endif; ?>
<?php endif; ?>
@@ -24,3 +28,4 @@
<input type="password" name="password" placeholder="Password" minlength="4">
<input type="submit" value="Login">
</form>
+