login/register ui, add register to menu

This commit is contained in:
j 2023-08-21 12:18:23 +02:00
commit 7e4be4a233
4 changed files with 47 additions and 2 deletions

View file

@ -53,6 +53,8 @@
<a href="/logout/">logout</a>
{% else %}
<a href="/login/">login</a>
<br>
<a href="/register/">register</a>
{% endif %}
</div>
</nav>

View file

@ -7,8 +7,9 @@
<form method="POST">
{% csrf_token %}
<input name="username" type="text" placeholder="your username" required></input>
<br>
<input name="password" type="password" placeholder="your password" required></input>
<div class="buttons login">
<div class="buttons">
<button id="login">Login</button>
</div>
<div class="error">{{ error }}</div>