mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 11:00:55 +03:00
Chore/standardize password criteria (#4550)
standardize password criteria
This commit is contained in:
@@ -6,7 +6,7 @@ export const passwordSchema = z
|
||||
.regex(/[a-z]/, 'Password must contain at least one lowercase letter')
|
||||
.regex(/[A-Z]/, 'Password must contain at least one uppercase letter')
|
||||
.regex(/\d/, 'Password must contain at least one digit')
|
||||
.regex(/[@$!%*?&-]/, 'Password must contain at least one special character (@$!%*?&-)')
|
||||
.regex(/[^a-zA-Z0-9]/, 'Password must contain at least one special character')
|
||||
|
||||
export const validatePassword = (password) => {
|
||||
const result = passwordSchema.safeParse(password)
|
||||
|
||||
Reference in New Issue
Block a user