MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / validatePassword

Function validatePassword

packages/ui/src/utils/validation.js:12–18  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

10 .regex(/[^a-zA-Z0-9]/, 'Password must contain at least one special character')
11
12export const validatePassword = (password) => {
13 const result = passwordSchema.safeParse(password)
14 if (!result.success) {
15 return result.error.errors.map((err) => err.message)
16 }
17 return []
18}

Callers 2

validateAndSubmitFunction · 0.90
savePasswordFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected