Skip to content

Commit

Permalink
Allow for all special chars in a password
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlurak committed Aug 25, 2024
1 parent 7cf7fd4 commit 1348a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/auth/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const registerRouter = new Elysia({ prefix: "/register" })
description:
"Password must contain at least 8 characters, one uppercase letter, one lowercase letter, one number, and one special character",
pattern:
"^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$",
"^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^a-zA-Z0-9]).{8,}$",
}),
// t.RegExp(),
}),
Expand Down

0 comments on commit 1348a96

Please sign in to comment.