2018-05-29 19:07:23 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Set Password
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-06-04 19:49:42 +02:00
|
|
|
|
|
|
|
{% if optional %}
|
2018-12-22 14:14:08 +01:00
|
|
|
<div class="alert alert-primary">
|
2018-06-04 19:49:42 +02:00
|
|
|
It is recommended that you set a password for your account.
|
|
|
|
|
2019-11-21 20:38:26 +01:00
|
|
|
<a class="alert_right button" href="{{ url_for('homepage.home') }}">Skip</a>
|
2018-06-04 19:49:42 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2018-05-29 19:07:23 +02:00
|
|
|
<h1>Set Password</h1>
|
|
|
|
|
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field %}
|
|
|
|
<form action="" method="POST" class="form" role="form">
|
2018-06-04 19:49:42 +02:00
|
|
|
{{ form.hidden_tag() }}
|
2018-05-29 19:07:23 +02:00
|
|
|
|
2020-12-05 00:07:19 +01:00
|
|
|
{% if form.email and not current_user.email %}
|
2021-02-27 20:03:52 +01:00
|
|
|
{{ render_field(form.email, tabindex=220,
|
|
|
|
hint=_("Your email is needed to recover your account if you forget your password and to send (configurable) notifications. ") +
|
|
|
|
_("Your email will never be shared with a third-party.")) }}
|
2018-06-04 19:49:42 +02:00
|
|
|
{% endif %}
|
2018-05-29 19:07:23 +02:00
|
|
|
|
2020-12-05 00:07:19 +01:00
|
|
|
{% if form.old_password %}
|
|
|
|
{{ render_field(form.old_password, tabindex=230) }}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-06-04 19:49:42 +02:00
|
|
|
{{ render_field(form.password, tabindex=230) }}
|
|
|
|
{{ render_field(form.password2, tabindex=240) }}
|
2018-05-29 19:07:23 +02:00
|
|
|
|
2020-12-05 01:29:57 +01:00
|
|
|
<p>
|
|
|
|
Must be at least 8 characters long.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Password suggestion
|
|
|
|
(<a href="https://xkcd.com/936/">Why?</a>):
|
|
|
|
<code>{{ suggested_password }}</code>
|
|
|
|
</p>
|
|
|
|
|
2018-06-04 19:49:42 +02:00
|
|
|
{{ render_submit_field(form.submit, tabindex=280) }}
|
2018-05-29 19:07:23 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
{% endblock %}
|