diff options
| -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> + |
