blob: da0d8e25a4cf46790cb837a007ac9a5dedab69d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<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>
|