From 57f521a03440f3df73d084978f9dbf0723cb64a7 Mon Sep 17 00:00:00 2001
From: Frederic
Date: Fri, 26 Apr 2019 17:57:23 +0200
Subject: [PATCH] add templates for remaining authentication views
---
bam/templates/bam/password_change_done.html | 6 ++++
bam/templates/bam/password_reset.html | 32 +++++++++++++++++
.../bam/password_reset_complete.html | 6 ++++
bam/templates/bam/password_reset_confirm.html | 36 +++++++++++++++++++
bam/templates/bam/password_reset_done.html | 5 +++
bam/urls.py | 5 +++
6 files changed, 90 insertions(+)
create mode 100644 bam/templates/bam/password_change_done.html
create mode 100644 bam/templates/bam/password_reset.html
create mode 100644 bam/templates/bam/password_reset_complete.html
create mode 100644 bam/templates/bam/password_reset_confirm.html
create mode 100644 bam/templates/bam/password_reset_done.html
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
+
+
+
+
+{% 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 %}
+
+ {% 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'