{# /*************************************************************************** File name: password-change.html.twig Site: travellersoftware.com Copyright 2024 Michael J. Miller, All rights reserved Purpose: user level account management - admin has a different system Requires: user - logged in account record old_password - existing password, only present when there's an error or refresh errors - optional, errors for each field Revision History: Date Version Details -------- ------ ------------------------------------------------- 3/11926 4.0a created ****************************************************************************/ #} {% set mode = mode|default('change') %} {% if mode == 'success' %}


Your password has been reset.

You can close this window now.




{% elseif mode == 'failure' %}


Password reset has failed or been cancelled.

You can close this window now.




{% else %}

{{ mode == 'reset' ? 'Reset Password' : 'Change Password' }}

{% include "includes/messages.html.twig" %}
{% if errors is defined %}
Please correct errors
{% endif %}

Some browsers don't automatically save generated passwords resulting in you not knowing what the password was changed to. To avoid this problem, use the copy button to save it on your clipboard. Then, when logging in, you can simply paste the saved password into the password field.

{% if mode == 'reset' %} {% elseif mode == 'change' %} {% endif %} {% if mode == 'change' %} {% if errors is defined %} {{ (errors.old_password??'')|raw }}
{% endif %} {% endif %}
Copied!
{#
Copy password to clipboard.
#}
{{ errors.password is defined ? errors.password|raw : '' }}
{# #}
{{ errors.confirm is defined ? errors.confirm|raw : '' }}
Some browsers don't automatically save generated strong passwords. You should copy the password and use it to log in with if you don't see an indication that the password has been saved.
{% endif %}