Skip to content

Refonte page mode de passe oublié - #2367

Open
vgreb wants to merge 1 commit into
afup:masterfrom
vgreb:front/forgot-password
Open

Refonte page mode de passe oublié#2367
vgreb wants to merge 1 commit 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.

{% block content %}

<div class="container mx-auto flex flex-col items-center px-4 my-5 gap-4">
<h1 class="font-titre font-normal text-5xl text-afup-800 text-center">Mot de passe perdu</h1>

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.

Pas besoin de reset l'épaisseur du texte ici.

Suggested change
<h1 class="font-titre font-normal text-5xl text-afup-800 text-center">Mot de passe perdu</h1>
<h1 class="font-titre text-5xl text-afup-800 text-center">Mot de passe perdu</h1>


<div class="container mx-auto flex flex-col items-center px-4 my-5 gap-4">
<h1 class="font-titre font-normal text-5xl text-afup-800 text-center">Mot de passe perdu</h1>
<p class="font-sans font-normal text-base text-neutre-700 text-center max-w-2xl">

@Mopolo Mopolo Aug 26, 2026

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.

Pareil il y a trop de classes ici.

Suggested change
<p class="font-sans font-normal text-base text-neutre-700 text-center max-w-2xl">
<p class="text-neutre-700 text-center max-w-2xl">

{{ form_row(form.email, {label: 'Email', attr: {autofocus: true}}) }}

<div class="flex flex-col-reverse sm:flex-row items-center justify-between gap-4 border-t-2 border-neutre-300 pt-5">
<p class="font-sans font-normal text-sm text-neutre-700 whitespace-nowrap">

@Mopolo Mopolo Aug 26, 2026

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.

Suggested change
<p class="font-sans font-normal text-sm text-neutre-700 whitespace-nowrap">
<p class="text-sm text-neutre-700 whitespace-nowrap">

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é.

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