Skip to content

Commit

Permalink
Fix bug in login functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
gubbih committed Nov 29, 2023
1 parent c711a4d commit 240dee2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/routes/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,16 @@ router.post(
celebrate({
[Segments.BODY]: Joi.object().keys({
firstName: Joi.string()
.regex(/^[a-zæøåA-ZÆØÅ\\-\s]+$/)
.min(2)
.max(64)
.required(),
lastName: Joi.string()
.regex(/^[a-zæøåA-ZÆØÅ\\-\s]+$/)
.min(2)
.max(64)
.required(),
email: Joi.string().required().email(),
password: Joi.string()
.required()
.regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-ZÆØÅa-zæøå\d@$!%*?&]{8,}$/)
.min(8)
.max(64),
repeatPassword: Joi.ref('password'),
Expand Down

0 comments on commit 240dee2

Please sign in to comment.