Skip to content

Commit

Permalink
Fix bug in login functionality (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
gubbih authored Nov 29, 2023
1 parent 1ebda84 commit c818033
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/routes/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ router.post(
.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),
password: Joi.string().required().min(8).max(64),
repeatPassword: Joi.ref('password'),
}),
}),
Expand Down

0 comments on commit c818033

Please sign in to comment.