Skip to content

Commit

Permalink
feat: correct form validatoin reset password
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSlain committed Nov 26, 2024
1 parent 41e3cf4 commit cfe4125
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/pages/NewPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ import { ButtonInformation } from '../components/Global/ButtonInformation'

const PasswordSchema = object(
{
username: string("Le nom d'utilisateur est invalide.", [
custom(
(username) => !username.includes('@'),
"Le nom d'utilisateur ne doit pas contenir '@'.",
),
]),
email: string('Adresse email valide', [email('Adresse email invalide.')]),
password: string('Le mot de passe est invalide.', [
minLength(8, 'Le mot de passe doit contenir au moins 8 caractères.'),
maxLength(128, 'Le mot de passe doit contenir au plus 128 caractères.'),
Expand Down

0 comments on commit cfe4125

Please sign in to comment.