This commit is contained in:
dswbx
2025-06-21 17:05:27 +02:00
parent 42edce904f
commit 6e78a4c238
37 changed files with 215 additions and 125 deletions
@@ -34,7 +34,7 @@ export class PasswordStrategy extends Strategy<typeof schema> {
private getPayloadSchema() {
return s.object({
email: s.string({
pattern: "^[\\w-\\.\\+_]+@([\\w-]+\\.)+[\\w-]{2,4}$",
pattern: /^[\w-\.\+_]+@([\w-]+\.)+[\w-]{2,4}$/,
}),
password: s.string({
minLength: 8, // @todo: this should be configurable