diff --git a/bam/templates/bam/password_change_done.html b/bam/templates/bam/password_change_done.html new file mode 100644 index 0000000..9475ead --- /dev/null +++ b/bam/templates/bam/password_change_done.html @@ -0,0 +1,6 @@ +{% extends "bam/base.html" %} +{% block content %} +

Password Change

+ +

Your password has been changed.

+{% endblock %} diff --git a/bam/templates/bam/password_reset.html b/bam/templates/bam/password_reset.html new file mode 100644 index 0000000..82ce00b --- /dev/null +++ b/bam/templates/bam/password_reset.html @@ -0,0 +1,32 @@ +{% extends "bam/base.html" %} +{% block content-extra-head %} + +{% endblock %} +{% block content %} +

Password Reset

+ +

+

+ {% csrf_token %} +
+ {% for field in form %} +
+ {{ field.label_tag }} + {{ field }} + {% for error in field.errors %} + {{ error }} + {% endfor %} +
+ {% endfor %} +
+ +
+ +
+
+

+{% endblock %} diff --git a/bam/templates/bam/password_reset_complete.html b/bam/templates/bam/password_reset_complete.html new file mode 100644 index 0000000..48b5001 --- /dev/null +++ b/bam/templates/bam/password_reset_complete.html @@ -0,0 +1,6 @@ +{% extends "bam/base.html" %} +{% block content %} +

Password Reset

+ +

Your password has been changed. Click here to log in.

+{% endblock %} diff --git a/bam/templates/bam/password_reset_confirm.html b/bam/templates/bam/password_reset_confirm.html new file mode 100644 index 0000000..2dcc0b1 --- /dev/null +++ b/bam/templates/bam/password_reset_confirm.html @@ -0,0 +1,36 @@ +{% extends "bam/base.html" %} +{% block content-extra-head %} + +{% endblock %} +{% block content %} +

Password Reset

+ +

+ {% if validlink %} +

+ {% csrf_token %} +
+ {% for field in form %} +
+ {{ field.label_tag }} + {{ field }} + {% for error in field.errors %} + {{ error }} + {% endfor %} +
+ {% endfor %} +
+ +
+ +
+
+ {% else %} + Invalid password reset link. + {% endif %} +

+{% endblock %} diff --git a/bam/templates/bam/password_reset_done.html b/bam/templates/bam/password_reset_done.html new file mode 100644 index 0000000..8f32806 --- /dev/null +++ b/bam/templates/bam/password_reset_done.html @@ -0,0 +1,5 @@ +{% extends "bam/base.html" %} +{% block content %} +

Password Reset

+Please check your mailbox. +{% endblock %} diff --git a/bam/urls.py b/bam/urls.py index 6c3b655..c7d8c5d 100644 --- a/bam/urls.py +++ b/bam/urls.py @@ -36,6 +36,11 @@ urlpatterns = [ template_name='bam/password_reset_done.html' ), name='password_reset_done'), + path('password_reset_confirm///', + auth_views.PasswordResetConfirmView.as_view( + template_name='bam/password_reset_confirm.html' + ), + name='password_reset_confirm'), path('password_reset_confirm/', auth_views.PasswordResetConfirmView.as_view( template_name='bam/password_reset_confirm.html'