Skip to content

Refonte page mode de passe oublié - #2367

Open
vgreb wants to merge 2 commits into
afup:masterfrom
vgreb:front/forgot-password
Open

Refonte page mode de passe oublié#2367
vgreb wants to merge 2 commits into
afup:masterfrom
vgreb:front/forgot-password

Conversation

@vgreb

@vgreb vgreb commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator
Avant Après
image image

J'ai aussi corrigé le comportement à la soumission du formulaire dans le cas d'un email inconnu, on affiche maintenant un message neutre pour éviter l'énumeration des comptes.

Comment thread templates/site/auth/lost_password.html.twig Outdated
Comment thread templates/site/auth/lost_password.html.twig Outdated
Comment thread templates/site/auth/lost_password.html.twig Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Un test avec autant de mocks ne me parait pas une bonne idée.

Ce serait mieux, soit d'avoir un test behat, soit de s'en passer.

Là les seuls assertions sont sur des mocks donc on se retrouve juste avec une copie de code, peu d'intérêt et cela rend le test beaucoup trop lié à du code privé.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai remplacé ce test par un scenario Behat

@vgreb
vgreb force-pushed the front/forgot-password branch from 3852899 to 15b5a38 Compare August 26, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants