Skip to content
Snippets Groups Projects
Commit 9daf0c20 authored by rayhanp1402's avatar rayhanp1402
Browse files

better password validation in edit account

parent cbdff109
No related merge requests found
......@@ -101,7 +101,7 @@ AuthMiddleware::getInstance()->unsecureRoute();
},
{
fieldName: "password",
validatorFunction: (password) => lengthCheck('password', password, 6, 50, true),
validatorFunction: (password) => lengthCheck('password', password, 6, 50, true) && passwordCheck(password),
isFile: false
}
]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment