(reusing code previously written for the community lists) instead of the a custom MD5 scheme, add tests of all views, rewrite custom form handling code to use plain forms and ensure that the data is properly validated and errors visible in the UI. Move help texts on the Person form up to the model. - Legacy-Id: 11136
33 lines
770 B
HTML
33 lines
770 B
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin %}
|
|
|
|
{% load bootstrap3 %}
|
|
|
|
{% block title %}Change password{% endblock %}
|
|
|
|
{% block content %}
|
|
{% origin %}
|
|
|
|
{% if success %}
|
|
<h1>Password change successful</h1>
|
|
|
|
<p>Your password has been updated.</p>
|
|
<a type="a" class="btn btn-primary" href="/accounts/login/" rel="nofollow">Sign in</a>
|
|
|
|
{% else %}
|
|
<h1>Change password</h1>
|
|
|
|
<p>You can change the password below for your user {{ email }} below.</p>
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
{% bootstrap_form form %}
|
|
|
|
{% buttons %}
|
|
<button type="submit" class="btn btn-primary">Change password</button>
|
|
{% endbuttons %}
|
|
</form>
|
|
|
|
{% endif %}
|
|
{% endblock %}
|