diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-06-25 18:18:20 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-06-25 18:18:20 +0200 |
commit | 4bbe761215dbe989e8b2efc3823740416f403e71 (patch) | |
tree | 11f6f8c419516f196c525e25e11ec8ca4f086c42 /templates | |
parent | Nicer user list, multi group support (diff) | |
download | scout-subs-4bbe761215dbe989e8b2efc3823740416f403e71.tar.gz scout-subs-4bbe761215dbe989e8b2efc3823740416f403e71.zip |
reset password and decorators for login check
Diffstat (limited to 'templates')
-rw-r--r-- | templates/registration/password_reset_complete.html | 7 | ||||
-rw-r--r-- | templates/registration/password_reset_confirm.html | 17 | ||||
-rw-r--r-- | templates/registration/password_reset_done.html | 12 | ||||
-rw-r--r-- | templates/registration/password_reset_email.html | 12 | ||||
-rw-r--r-- | templates/registration/password_reset_form.html | 10 | ||||
-rw-r--r-- | templates/registration/password_reset_subject.txt | 1 |
6 files changed, 59 insertions, 0 deletions
diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..c0bccc1 --- /dev/null +++ b/templates/registration/password_reset_complete.html @@ -0,0 +1,7 @@ +{% extends 'registration/base_simple.html' %} + +{% block content %} + <p> + Your password has been set. You may go ahead and <a href="{% url 'signin' %}">sign in</a> now. + </p> +{% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..6838eb8 --- /dev/null +++ b/templates/registration/password_reset_confirm.html @@ -0,0 +1,17 @@ +{% extends 'registration/base_simple.html' %} + +{% block content %} + {% if validlink %} + <h3>Change password</h3> + <form method="post"> + {% csrf_token %} + {{ form.as_p }} + <button type="submit">Change password</button> + </form> + {% else %} + <p> + The password reset link was invalid, possibly because it has already been used. + Please request a new password reset. + </p> + {% endif %} +{% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html new file mode 100644 index 0000000..6abc3e1 --- /dev/null +++ b/templates/registration/password_reset_done.html @@ -0,0 +1,12 @@ +{% extends 'registration/base_simple.html' %} + +{% block content %} + <p> + We've emailed you instructions for setting your password, if an account exists with the email you entered. + You should receive them shortly. + </p> + <p> + If you don't receive an email, please make sure you've entered the address you registered with, + and check your spam folder. + </p> +{% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html new file mode 100644 index 0000000..da2c169 --- /dev/null +++ b/templates/registration/password_reset_email.html @@ -0,0 +1,12 @@ +{% autoescape off %} +To initiate the password reset process for your {{ user.get_username }} TestSite Account, +click the link below: + +{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} + +If clicking the link above doesn't work, please copy and paste the URL in a new browser +window instead. + +Sincerely, +The TestSite Team +{% endautoescape %}
\ No newline at end of file diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html new file mode 100644 index 0000000..d0d6250 --- /dev/null +++ b/templates/registration/password_reset_form.html @@ -0,0 +1,10 @@ +{% extends 'registration/base_simple.html' %} + +{% block content %} + <h3>Forgot password</h3> + <form method="post"> + {% csrf_token %} + {{ form.as_p }} + <button type="submit">Submit</button> + </form> +{% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_subject.txt b/templates/registration/password_reset_subject.txt new file mode 100644 index 0000000..7b5a65b --- /dev/null +++ b/templates/registration/password_reset_subject.txt @@ -0,0 +1 @@ +TestSite password reset
\ No newline at end of file |