mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
fix: signup password validation
feat: add search by brands (WIP)
This commit is contained in:
@@ -13,7 +13,7 @@ const signup: SignupHandlers['signup'] = async ({
|
||||
lastName: Joi.string().min(1),
|
||||
email: Joi.string().email({ tlds: false }),
|
||||
password: Joi.string().pattern(
|
||||
new RegExp('^(?=.*d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^wd:])([^s]){6,}$')
|
||||
new RegExp(/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^\d\s:])([^\s]){6,}$/)
|
||||
),
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user