webserver-framework/files/index.html
2022-11-10 20:47:08 +02:00

39 lines
1.1 KiB
HTML

<!--
This file isn't automatically served anywhere, it's just here to populate the directory
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Login</title>
</head>
<body>
<div class="main-container">
<h2>Log in</h2>
<form action="/api/login" method="post">
<label for="username">Username: </label>
<input id="username" name="username" type="text" autocomplete="off" required><br />
<label for="password">Password: </label>
<input id="password" name="password" type="password" required><br />
<input type="submit" value="Log in">
</form>
<h2>Register</h2>
<form action="/api/register" method="post">
<label for="username">Username: </label>
<input id="username" name="username" type="text" autocomplete="off" required><br />
<label for="password">Password: </label>
<input id="password" name="password" type="password" required><br />
<input type="submit" value="Register">
</form>
</div>
</body>
</html>