2011-09-04 04:21:51 +00:00
{% extends "registration/registration_base.html" %}
{% block title %}Change password{% endblock %}
2011-11-19 00:50:47 +00:00
{% block doccontent %}
2012-01-13 17:34:42 +00:00
2011-11-19 00:50:47 +00:00
{% if request.user.is_authenticated %}
{% ifequal request.user.password '!' %}
2012-01-13 17:34:42 +00:00
< div >
Because you registered using your account on another site (such as Google), you'll need to < a href = "{% url django.contrib.auth.views.password_reset %}" > reset your password< / a > before you can change it.
< / div >
< a href = "{% url django.contrib.auth.views.password_reset %}" class = "nounderline" > < div class = "actionbutton" > Reset password< / div > < / a >
2011-11-19 00:50:47 +00:00
{% else %}
< form method = 'post' action = '' > {% csrf_token %}
{{ form.as_p }}
< p > < input type = 'submit' value = "Change password" / > < / p >
< / form >
{% endifequal %}
{% else %}
2012-01-13 17:34:42 +00:00
< div > You must be logged in to change your password.< / div >
< a href = "{% url auth_login %}?next={% firstof request.path '/' %}" class = "nounderline" > < div class = "actionbutton" > Log in< / div > < / a >
2011-11-19 00:50:47 +00:00
{% endif %}
2012-01-13 17:34:42 +00:00
2012-01-13 21:24:34 +00:00
< p > Want to < a href = "/accounts/edit/" > change your username< / a > instead?< / p >
2011-09-04 04:21:51 +00:00
{% endblock %}