This commit is contained in:
2025-05-01 14:42:12 -06:00
parent 693d11c506
commit bd59f428ba
13 changed files with 288 additions and 124 deletions
+5 -2
View File
@@ -4,11 +4,12 @@ function login_form($error_msg = '')
$form = '
<div class="form_card">
<h3 class="underline">Log In</h3>
<form method="post">
<form method="post" id="login_form">
<input type="hidden" name="form_id" value="login_form">
<input type="hidden" name="password_hash" value="" id="password_hash">
<label for="username">Username / Email</label>
<input id="username" name="username" spellcheck="false" required>
<input id="username" name="username" spellcheck="false" required autofocus>
<label for="password">Password</label>
<input id="password" name="password" type="password" spellcheck="false" required>
@@ -21,6 +22,8 @@ function login_form($error_msg = '')
<input class="button" type="submit" value="Log In">
' . $error_msg . '
</form>
<script src="js/login.js" defer></script>
</div>
';