Add cookie based auth, file serving and uploading

This commit is contained in:
2024-11-03 01:25:28 +01:00
parent c83c0e7ec4
commit 5c69317660
19 changed files with 418 additions and 45 deletions

View File

@@ -0,0 +1,16 @@
{% extends "website/base.html" %} {% block content %}
<div class="w-full mt-16"></div>
<form
class="text-black"
method="post"
enctype="application/x-www-form-urlencoded"
action="/api/auth/login"
>
<label class="text-white" for="email">Email:</label>
<input type="text" id="email" name="email" required />
<label class="text-white" for="password">Password:</label>
<input type="password" id="password" name="password" required />
<button class="text-white" type="submit">Login</button>
</form>
{% endblock content%}