Skip to content
Snippets Groups Projects
Commit 87d56cb9 authored by V S Tharunika's avatar V S Tharunika
Browse files

changed & made strong password validations

parent 51f508eb
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -7,7 +7,8 @@ module.exports={ ...@@ -7,7 +7,8 @@ module.exports={
const schema =Joi.object({ const schema =Joi.object({
email: Joi.string().email(), email: Joi.string().email(),
password: Joi.string().regex( password: Joi.string().regex(
new RegExp('^[a-zA-Z0-9]{8-32}$') //new RegExp('^[a-zA-Z0-9]{8-32}$')
new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})")
) )
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment