Skip to content

Commit

Permalink
[REMANIEMENT] Trime le token lors de la vérification si il existe ou non
Browse files Browse the repository at this point in the history
  • Loading branch information
firefly33 committed Nov 14, 2024
1 parent a7bf32c commit 6e46fae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const FormulaireReinitialiserMotDePasseConnecte = ({
motDePasse: string;
confirmationMotDePasse: string;
}) => {
if (!token || token.length === 0 || token === '')
if (!token || token.length === 0 || token.trim() === '')
throw new Error(
'Une erreur est survenue lors de la demande de réinitialisation de mot de passe'
);
Expand Down

0 comments on commit 6e46fae

Please sign in to comment.