Added basic authentication support using django.contrib.auth and requiring login using the django.contrib.auth.decorators.login_required decorator.

This commit is contained in:
Johannes Randerath
2024-06-14 15:00:11 +02:00
parent fe1273813c
commit ff40cf8edb
4 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
<h2>Register</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Register</button>
</form>