Files
ave-cms/adminx/modules/Auth/view/password.twig
T
2026-08-05 21:40:21 +03:00

23 lines
2.4 KiB
Twig

{% extends '@adminx/auth.twig' %}
{% block title %}{{ lang.auth_temp_password_title|default('Смена временного пароля') }}{% endblock %}
{% block content %}
<div class="auth-wrap">
<div class="card auth-card">
<div class="auth-head">
<h1 class="auth-logo-h"><img class="auth-logo" src="{{ asset_ver(ADMINX_BASE ~ '/assets/img/logo.svg') }}" alt="AVE.cms" width="132" height="47"></h1>
<h1>{{ lang.auth_temp_password_heading|default('Смените временный пароль') }}</h1>
<p class="text-secondary">{{ lang.auth_temp_password_for|default('Для') }} {{ user.name|default(user.email) }}. {{ lang.auth_temp_password_intro|default('После смены откроется панель управления.') }}</p>
</div>
{% if error %}<div class="alert alert-danger" role="alert"><i class="ti ti-alert-triangle"></i><span>{{ error }}</span></div>{% endif %}
<form method="post" action="{{ ADMINX_BASE }}/account/password" class="auth-form">
<input type="hidden" name="_csrf" value="{{ csrf_token }}">
<div class="field"><label for="currentPassword">{{ lang.auth_temp_password_current|default('Временный пароль') }}</label><input class="input" type="password" id="currentPassword" name="current_password" autocomplete="current-password" autofocus required></div>
<div class="field"><label for="newPassword">{{ lang.auth_temp_password_new|default('Новый пароль') }}</label><input class="input" type="password" id="newPassword" name="password" minlength="8" autocomplete="new-password" required><span class="field-hint">{{ lang.auth_temp_password_hint|default('Минимум 8 символов, пароль должен отличаться от временного.') }}</span></div>
<div class="field"><label for="passwordConfirm">{{ lang.auth_temp_password_confirm|default('Повторите новый пароль') }}</label><input class="input" type="password" id="passwordConfirm" name="password_confirm" minlength="8" autocomplete="new-password" required></div>
<button class="btn btn-primary btn-block" type="submit"><i class="ti ti-key"></i>{{ lang.auth_temp_password_save|default('Сохранить новый пароль') }}</button>
</form>
</div>
<div class="auth-foot text-muted text-xs">AVE.cms · {{ lang.app_admin_panel|default('Панель управления') }}</div>
</div>
{% endblock %}