{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}{% if just_created %}Invite {{ user.username }}{% else %}Reset password for {{ user.username }}{% endif %} - Pychestrate Configuration{% endblock %} {% block content %} {% if issued_link %}

{% if issued_link.purpose == 'INVITE' %}Invite link{% else %}Password reset link{% endif %}

Shown once — copy it now and send it to {{ user.display_name or user.username }} (for example by chat or email). Pychestrate does not send email.

{% endif %} {{ ui.error_summary(errors, error_labels) }} {% if problems %} {% endif %} {% if is_self %}

This is your own account. Change your password on the Change password page, which asks for your current password.

{% elif user.status == 'inactive' %}

This account is deactivated. Reactivate it before resetting its password.

{% else %}

{% if user.status == 'invited' %}Create a new invite link{% else %}Create a reset link{% endif %}

The user opens the link and chooses their own password. It works once and expires after {% if user.status == 'invited' %}7 days{% else %}24 hours{% endif %}.

Set a temporary password

Tell the user this password yourself. Their open sessions are signed out.

{{ ui.field_error(errors, "password") }} {% with password_input_id="password" %} {% include "config/_password_rules.html" %} {% endwith %}
{{ ui.field_error(errors, "password_confirm") }}
{% endif %}
{{ ui.icon("arrow_back") }} Back to {{ user.username }}
{% endblock %} {% block extra_js %} {% endblock %}