Add flash messages to login page, French security translations, fix CS
- Add success flash messages display on login page (reset password, email verified) - Create translations/security.fr.yaml with French security messages - Set default_locale to fr in translation.yaml - Remove unused StripeObject import (CS Fixer) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
framework:
|
framework:
|
||||||
default_locale: en
|
default_locale: fr
|
||||||
translator:
|
translator:
|
||||||
default_path: '%kernel.project_dir%/translations'
|
default_path: '%kernel.project_dir%/translations'
|
||||||
providers:
|
providers:
|
||||||
|
|||||||
@@ -8,6 +8,12 @@
|
|||||||
<h1 class="text-3xl font-black uppercase tracking-tighter italic" style="border-bottom:4px solid #111827;display:inline-block;margin-bottom:0.5rem;">Connexion</h1>
|
<h1 class="text-3xl font-black uppercase tracking-tighter italic" style="border-bottom:4px solid #111827;display:inline-block;margin-bottom:0.5rem;">Connexion</h1>
|
||||||
<p class="font-bold text-gray-600 italic" style="margin-bottom:2rem;">Accedez a votre espace.</p>
|
<p class="font-bold text-gray-600 italic" style="margin-bottom:2rem;">Accedez a votre espace.</p>
|
||||||
|
|
||||||
|
{% for message in app.flashes('success') %}
|
||||||
|
<div style="border:4px solid #111827;padding:1rem 1.5rem;margin-bottom:2rem;background:#d1fae5;box-shadow:4px 4px 0 rgba(0,0,0,1);">
|
||||||
|
<p class="font-black text-sm">{{ message }}</p>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<div style="border:4px solid #111827;padding:1rem 1.5rem;margin-bottom:2rem;background:#fee2e2;box-shadow:4px 4px 0 rgba(0,0,0,1);">
|
<div style="border:4px solid #111827;padding:1rem 1.5rem;margin-bottom:2rem;background:#fee2e2;box-shadow:4px 4px 0 rgba(0,0,0,1);">
|
||||||
<p class="font-black text-sm">{{ error.messageKey|trans(error.messageData, 'security') }}</p>
|
<p class="font-black text-sm">{{ error.messageKey|trans(error.messageData, 'security') }}</p>
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ use App\Service\PayoutPdfService;
|
|||||||
use App\Service\StripeService;
|
use App\Service\StripeService;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Stripe\Event;
|
use Stripe\Event;
|
||||||
use Stripe\StripeObject;
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
|
|
||||||
class StripeWebhookControllerTest extends WebTestCase
|
class StripeWebhookControllerTest extends WebTestCase
|
||||||
|
|||||||
14
translations/security.fr.yaml
Normal file
14
translations/security.fr.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
"Invalid credentials.": "Identifiants invalides."
|
||||||
|
"Invalid or expired login link.": "Lien de connexion invalide ou expire."
|
||||||
|
"Too many failed login attempts, please try again in %minutes% minute.": "Trop de tentatives de connexion echouees, veuillez reessayer dans %minutes% minute."
|
||||||
|
"Too many failed login attempts, please try again in %minutes% minutes.": "Trop de tentatives de connexion echouees, veuillez reessayer dans %minutes% minutes."
|
||||||
|
"Account is disabled.": "Ce compte est desactive."
|
||||||
|
"Account is locked.": "Ce compte est verrouille."
|
||||||
|
"Account has expired.": "Ce compte a expire."
|
||||||
|
"Credentials have expired.": "Les identifiants ont expire."
|
||||||
|
"An authentication exception occurred.": "Une erreur d'authentification est survenue."
|
||||||
|
"Authentication credentials could not be found.": "Les identifiants d'authentification n'ont pas ete trouves."
|
||||||
|
"Authentication request could not be processed due to a system problem.": "La demande d'authentification n'a pas pu etre traitee en raison d'un probleme systeme."
|
||||||
|
"CSRF token is invalid.": "Le jeton CSRF est invalide."
|
||||||
|
"Not privileged to request the resource.": "Acces non autorise a cette ressource."
|
||||||
|
"Username could not be found.": "Identifiant introuvable."
|
||||||
Reference in New Issue
Block a user