Introduce login UI error and success handling

This commit is contained in:
2024-11-09 00:30:33 -05:00
parent f257c5de22
commit fcee377fb4
6 changed files with 55 additions and 14 deletions

View File

@ -11,10 +11,12 @@
<main>
<div id="login-container">
<form id="login-form">
<h2>Plutonium login</h2>
<p id="hint" style="visibility: hidden;"></p>
<label for="username">Username :</label>
<input type="text" name="username" id="username-field" placeholder="Your Plutonium username" minLength="2" maxLength="64">
<input type="text" name="username" id="username-field" placeholder="Your Plutonium username" minLength="3" maxLength="16">
<label for="password">Password :</label>
<input type="text" name="password" id="password-field" placeholder="Your Plutonium password" minLength="2" maxLength="64">
<input type="password" name="password" id="password-field" placeholder="Your Plutonium password" minLength="6" maxLength="64">
<span>Create an account at <a href="https://forum.plutonium.pw/register" target="_blank">https://forum.plutonium.pw/register</a> if you don't have one.</span>
<input type="button" value="Log in" onclick="tryAuth();">
</form>