1
0
Fork 0
This repository has been archived on 2025-03-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
csb-project-1/notes/templates/login.html

35 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<body>
<h3>Log In</h3>
{% if login_failed %}
<p> Incorrect username or password! </p>
{% endif %}
<form action="/accounts/login/" method="POST">
{% csrf_token %}
<label for="username">Username:</label><br>
<input type="text" id="username" name="username"><br><br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Log in">
</form>
<h3>Register as New User</h3>
<form action="/accounts/register/" method="POST">
{% csrf_token %}
<label for="username">Username:</label><br>
<input type="text" id="username" name="username"><br><br>
<label for="password">Password:</label><br>
<input type="password" id="password1" name="password1"><br><br>
<label for="password">Repeat Password:</label><br>
<input type="password" id="password2" name="password2"><br><br>
<ul>
{% for error in registration_errors %}
<li>{{error}}</li>
{% endfor %}
</ul>
<input type="submit" value="Register">
</form>
</body>
</html>