From 19698270e54d7b069bef32e1c98a527e9222aa5a Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Thu, 19 Jan 2023 23:28:55 +0000 Subject: [PATCH] [FEAT] Password resets --- .../templates/registration/login.html | 1 + .../registration/password_reset_complete.html | 8 +++++++ .../registration/password_reset_confirm.html | 24 +++++++++++++++++++ .../registration/password_reset_done.html | 8 +++++++ .../registration/password_reset_form.html | 15 ++++++++++++ 5 files changed, 56 insertions(+) create mode 100644 breccia_mapper/templates/registration/password_reset_complete.html create mode 100644 breccia_mapper/templates/registration/password_reset_confirm.html create mode 100644 breccia_mapper/templates/registration/password_reset_done.html create mode 100644 breccia_mapper/templates/registration/password_reset_form.html diff --git a/breccia_mapper/templates/registration/login.html b/breccia_mapper/templates/registration/login.html index 9da2b5d..e60e34b 100644 --- a/breccia_mapper/templates/registration/login.html +++ b/breccia_mapper/templates/registration/login.html @@ -11,5 +11,6 @@ {% endbuttons %} +

Forgot your password? Reset it here.

{% endblock %} \ No newline at end of file diff --git a/breccia_mapper/templates/registration/password_reset_complete.html b/breccia_mapper/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..5ff1a12 --- /dev/null +++ b/breccia_mapper/templates/registration/password_reset_complete.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% load bootstrap4 %} + +{% block content %} +

Password Reset Complete

+ +

Your password has been successfully reset. You can now log in using it.

+{% endblock %} \ No newline at end of file diff --git a/breccia_mapper/templates/registration/password_reset_confirm.html b/breccia_mapper/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..3032bc8 --- /dev/null +++ b/breccia_mapper/templates/registration/password_reset_confirm.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} +{% load bootstrap4 %} + +{% block content %} +{% if validlink %} + +

Choose a New Password

+ +
+ {% csrf_token %} + {% bootstrap_form form %} + {% buttons %} + + + {% endbuttons %} +
+ +{% else %} + +

That link isn't valid - has it already been used? You can request a new link here.

+ +{% endif %} + +{% endblock %} \ No newline at end of file diff --git a/breccia_mapper/templates/registration/password_reset_done.html b/breccia_mapper/templates/registration/password_reset_done.html new file mode 100644 index 0000000..3150c32 --- /dev/null +++ b/breccia_mapper/templates/registration/password_reset_done.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% load bootstrap4 %} + +{% block content %} +

Check Your Inbox

+ +

We've emailed you instructions for how to reset your password.

+{% endblock %} \ No newline at end of file diff --git a/breccia_mapper/templates/registration/password_reset_form.html b/breccia_mapper/templates/registration/password_reset_form.html new file mode 100644 index 0000000..8aa034d --- /dev/null +++ b/breccia_mapper/templates/registration/password_reset_form.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% load bootstrap4 %} + +{% block content %} +

Password Reset

+ +
+ {% csrf_token %} + {% bootstrap_form form %} + {% buttons %} + + + {% endbuttons %} +
+{% endblock %} \ No newline at end of file