diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 16:10:15 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 16:10:15 +0200 |
| commit | 6596a76c856e2ddfccbc5f03d12a524fdf80e1bf (patch) | |
| tree | e610c07a435d84fb12c5a852aaf5a2c7b91f2050 /views/login/index.php | |
| parent | 6396a3f3a2ed26b94cda20cf06fa71db1f384aaa (diff) | |
| download | nowayforward_human-6596a76c856e2ddfccbc5f03d12a524fdf80e1bf.tar nowayforward_human-6596a76c856e2ddfccbc5f03d12a524fdf80e1bf.tar.gz nowayforward_human-6596a76c856e2ddfccbc5f03d12a524fdf80e1bf.zip | |
feat: Logout button
Diffstat (limited to 'views/login/index.php')
| -rw-r--r-- | views/login/index.php | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/views/login/index.php b/views/login/index.php index 1013874..94faafe 100644 --- a/views/login/index.php +++ b/views/login/index.php @@ -1,20 +1,21 @@ -<?php if (isset($user_status)): ?> - <?php if ($user_status !== ""): ?> - <p> - Fail: <?= $user_status ?> - </p> - <?php else: ?> - <p> - Success! - </p> - <script type="text/javascript"> - sessionStorage.setItem("token", "<?= $token ?>"); - window.location.href = "/"; - </script> +<h1>Login</h1> + +<hr class="new-section"/> + +<form action="#" method="POST" class="font-115 flex-col-centered max-width-20 center-margin"> + <?php if (isset($user_status)): ?> + <?php if ($user_status !== ""): ?> + <p class="item error"><span> + <strong>Error:</strong> <?= $user_status ?> + </span></p> + <?php else: ?> + <script type="text/javascript"> + sessionStorage.setItem("token", "<?= $token ?>"); + window.location.href = "/"; + </script> + <?php endif; ?> <?php endif; ?> -<?php endif; ?> -<form action="#" method="POST"> <input type="text" name="username" placeholder="Username" minlength="1" pattern="[A-Za-z][A-Za-z_0-9]*"> <input type="password" name="password" placeholder="Password" minlength="4"> <input type="submit" value="Login"> |
