diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-02 12:34:53 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-02 12:34:53 +0200 |
| commit | c83d7e03b607447cb203c0a17edaca9baf1d087f (patch) | |
| tree | 7b64b824d54bd4ed7ec6fc5cbbc35616c384a02e /views/login/index.php | |
| parent | 254e643a4f74a8b499093b303b831d80de5464ea (diff) | |
| download | nowayforward_human-c83d7e03b607447cb203c0a17edaca9baf1d087f.tar nowayforward_human-c83d7e03b607447cb203c0a17edaca9baf1d087f.tar.gz nowayforward_human-c83d7e03b607447cb203c0a17edaca9baf1d087f.zip | |
feat(views): Move login and logout to session/create and session/delete
Diffstat (limited to 'views/login/index.php')
| -rw-r--r-- | views/login/index.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/views/login/index.php b/views/login/index.php deleted file mode 100644 index da0d8e2..0000000 --- a/views/login/index.php +++ /dev/null @@ -1,23 +0,0 @@ -<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"> - cookieStorage.setItem("token", "<?= $token ?>"); - window.location.href = "/"; - </script> - <?php endif; ?> - <?php endif; ?> - - <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"> -</form> - |
