diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/auth/perform_reset.html (renamed from templates/auth/reset.html) | 0 | ||||
-rw-r--r-- | templates/auth/perform_reset_success.html (renamed from templates/auth/reset_success.html) | 0 | ||||
-rw-r--r-- | templates/auth/trigger_reset.html | 18 | ||||
-rw-r--r-- | templates/auth/trigger_reset_success.html | 14 | ||||
-rw-r--r-- | templates/settings/_menu.html | 2 | ||||
-rw-r--r-- | templates/settings/login_security.html | 17 |
6 files changed, 50 insertions, 1 deletions
diff --git a/templates/auth/reset.html b/templates/auth/perform_reset.html index 42eced9..42eced9 100644 --- a/templates/auth/reset.html +++ b/templates/auth/perform_reset.html diff --git a/templates/auth/reset_success.html b/templates/auth/perform_reset_success.html index 001e5d7..001e5d7 100644 --- a/templates/auth/reset_success.html +++ b/templates/auth/perform_reset_success.html diff --git a/templates/auth/trigger_reset.html b/templates/auth/trigger_reset.html new file mode 100644 index 0000000..b81c380 --- /dev/null +++ b/templates/auth/trigger_reset.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}Reset Password{% endblock %} + +{% block content %} + <form action="." method="POST"> + {% csrf_token %} + <fieldset> + <legend>Reset Password</legend> + {% for field in form %} + {% include "forms/_field.html" %} + {% endfor %} + </fieldset> + <div class="buttons"> + <button>Send Email</button> + </div> + </form> +{% endblock %} diff --git a/templates/auth/trigger_reset_success.html b/templates/auth/trigger_reset_success.html new file mode 100644 index 0000000..c0c1a0d --- /dev/null +++ b/templates/auth/trigger_reset_success.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}Password Reset Sent{% endblock %} + +{% block content %} + <form> + <fieldset> + <legend>Password Reset Sent</legend> + <p> + Please check your email at <tt>{{ email }}</tt> for the reset link. + </p> + </fieldset> + </form> +{% endblock %} diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index d85c878..cc87941 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -8,7 +8,7 @@ </a> {% if request.user.admin %} <h3>Account</h3> - <a href="#" {% if section == "login" %}class="selected"{% endif %}> + <a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %}> <i class="fa-solid fa-key"></i> Login & Security </a> <a href="/auth/logout/"> diff --git a/templates/settings/login_security.html b/templates/settings/login_security.html new file mode 100644 index 0000000..701b325 --- /dev/null +++ b/templates/settings/login_security.html @@ -0,0 +1,17 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}Login & Security{% endblock %} + +{% block content %} + <form action="." method="POST"> + {% csrf_token %} + <fieldset> + <legend>Login</legend> + {% include "forms/_field.html" with field=form.email %} + </fieldset> + <fieldset> + <legend>Password</legend> + <p>To change your password, please trigger a <a href="{% url "trigger_reset" %}">password reset</a>. + </fieldset> + </form> +{% endblock %} |