SuperSeller3000/templates/security/change_password.html.twig
Simon Kuehn f915bba966 feat: admin panel, Mistral client, attribute management, API key command
- Fix EasyAdmin 5 routing: #[AdminDashboard] attribute + easyadmin.routes loader
- Fix login: _username/_password field names, CSRF stateless token config,
  sessions directory, Opcache reload after cache:clear
- Add MistralClient behind OllamaClientInterface — switchable via services.yaml alias
- Add Attribute CRUD with EnumType form + ChoiceField display (enum-safe rendering)
- Add Article Type CRUD with AssociationField for attribute assignments
- Add app:api-keys:create console command (bcrypt-hashed, never stored as plaintext)
- Add redis ext to Docker image + symfony/redis-messenger, start workers
- Translate all UI strings to English
- Add tests: MistralClient, ApiKey, CreateApiKeyCommand, StringArrayType,
  ArticleTypeCrudController, AttributeDefinitionCrudController (82 tests total)
- Update design doc: tech stack, AI backend switching guide, ops section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 20:15:13 +00:00

37 lines
1.6 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Change Password{% endblock %}
{% block body %}
<div style="max-width:400px;margin:4rem auto;font-family:sans-serif">
<h1>Change Password</h1>
{% for message in app.flashes('success') %}
<div style="color:green;margin-bottom:1rem">{{ message }}</div>
{% endfor %}
{% if error %}
<div style="color:red;margin-bottom:1rem">{{ error }}</div>
{% endif %}
<form method="post">
<div style="margin-bottom:1rem">
<label for="current_password">Current Password</label><br>
<input id="current_password" type="password" name="current_password" required autofocus style="width:100%;padding:.5rem">
</div>
<div style="margin-bottom:1rem">
<label for="new_password">New Password</label><br>
<input id="new_password" type="password" name="new_password" required minlength="8" style="width:100%;padding:.5rem">
</div>
<div style="margin-bottom:1rem">
<label for="confirm_password">Confirm New Password</label><br>
<input id="confirm_password" type="password" name="confirm_password" required minlength="8" style="width:100%;padding:.5rem">
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('change_password') }}">
<div style="display:flex;gap:1rem;align-items:center">
<button type="submit" style="padding:.5rem 1rem">Change Password</button>
<a href="{{ path('easyadmin') }}" style="color:#666">Back to Dashboard</a>
</div>
</form>
</div>
{% endblock %}