diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 11:10:18 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 11:10:18 +0200 |
| commit | 595dc8300d81e1cfaae4686c5184fffc2d1f5324 (patch) | |
| tree | 2b12bc10830f853729d3e867e47df6881d27a2d3 | |
| parent | 76de68d2f3600a7000a054be3f595029b1931e20 (diff) | |
| download | nowayforward_human-595dc8300d81e1cfaae4686c5184fffc2d1f5324.tar nowayforward_human-595dc8300d81e1cfaae4686c5184fffc2d1f5324.tar.gz nowayforward_human-595dc8300d81e1cfaae4686c5184fffc2d1f5324.zip | |
feat(views): Login page logs you in
| -rw-r--r-- | views/login/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
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> + |
