mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 16:46:00 +00:00
fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user