34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ _('reset_password') }} - 高可用学习平台{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="auth-container">
|
|
<div class="auth-form">
|
|
<h2>{{ _('reset_password') }}</h2>
|
|
<form method="post" action="{{ url_for('auth.reset_password', token=request.view_args['token']) }}">
|
|
{{ form.hidden_tag() }}
|
|
|
|
<div class="mb-3">
|
|
{{ form.password.label(class="form-label") }}
|
|
{{ form.password(class="form-control") }}
|
|
{% for error in form.password.errors %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
{{ form.password2.label(class="form-label") }}
|
|
{{ form.password2(class="form-control") }}
|
|
{% for error in form.password2.errors %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
{{ form.submit(class="btn btn-primary") }}
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |