| 1 |
{% set title = title|default(_fsdomain('Change Password')) %} |
| 2 |
{% extends "security/base.html" %} |
| 3 |
{% from "security/_macros.html" import render_field_with_errors, render_field, render_field_errors, render_form_errors %} |
| 4 |
|
| 5 |
{% block content %} |
| 6 |
{% include "security/_messages.html" %} |
| 7 |
<h1>{{ _fsdomain('Change Password') }}</h1> |
| 8 |
<form action="{{ url_for_security('change_password') }}" method="post" name="change_password_form"> |
| 9 |
{{ change_password_form.hidden_tag() }} |
| 10 |
{{ render_form_errors(change_password_form) }} |
| 11 |
{% if active_password %} |
| 12 |
{{ render_field_with_errors(change_password_form.password) }} |
| 13 |
{% else %} |
| 14 |
<h3>{{ _fsdomain('You do not currently have a password - this will add one.') }}</h3> |
| 15 |
{% endif %} |
| 16 |
{{ render_field_with_errors(change_password_form.new_password) }} |
| 17 |
{{ render_field_with_errors(change_password_form.new_password_confirm) }} |
| 18 |
{{ render_field_errors(change_password_form.csrf_token) }} |
| 19 |
{{ render_field(change_password_form.submit) }} |
| 20 |
</form> |
| 21 |
{% include "security/_menu.html" %} |
| 22 |
{% endblock content %} |