32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
{% extends "registration/registration_base.html" %}
|
|
{% block title %}Change password{% endblock %}
|
|
{% block doccontent %}
|
|
|
|
{% if request.user.is_authenticated %}
|
|
{% ifequal request.user.password '!' %}
|
|
<div>
|
|
Because you registered using your account on another site (such as Google), you'll need to reset your password before you can change it.
|
|
</div>
|
|
<form method='post' action='{% url social_auth_reset_password %}'>{% csrf_token %}
|
|
|
|
<input id="id_email" type="hidden" name="email" value="{{request.user.email}}" />
|
|
|
|
<p><input type='submit' value="Reset password" /></p>
|
|
|
|
</form>
|
|
{% else %}
|
|
<form method='post' action=''>{% csrf_token %}
|
|
|
|
{{ form.as_p }}
|
|
<p><input type='submit' value="Change password" /></p>
|
|
|
|
</form>
|
|
{% endifequal %}
|
|
{% else %}
|
|
<div>You must be logged in to change your password.</div>
|
|
<a href="{% url superlogin %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}/next/{% endif %}" class="nounderline"><div class="actionbutton">Log in</div></a>
|
|
{% endif %}
|
|
|
|
<p>Want to <a href="{% url regluit.frontend.views.edit_user %}">change your username</a> instead?</p>
|
|
{% endblock %}
|