Created
August 10, 2022 23:15
-
-
Save 0x1881/9e284b9b4b6a89b72e301f8a4db90708 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules": [ | |
{ | |
"key": "INVALID_PASS_LENGTH", | |
"message": "Şifreniz 7 ile 15 karakter arasında olmalıdır.", | |
"value": "^.{7,15}$" | |
}, | |
{ | |
"key": "AT_LEAST_ONE_CHARACTER", | |
"message": "Şifreniz en az 1 harf içermelidir.", | |
"value": "^.*[a-zA-Z].*$" | |
}, | |
{ | |
"key": "AT_LEAST_ONE_NUMBER", | |
"message": "Şifreniz en az 1 rakam içermelidir.", | |
"value": "^.*[0-9].*$" | |
} | |
], | |
"strongTypes": [ | |
{ | |
"key": "PASSWORD_STRONG_LOW", | |
"message": "Zayıf Şifre", | |
"priority": 1, | |
"value": "^(?=.*[0-9])(?=.*[a-zA-Z]).{7,15}$" | |
}, | |
{ | |
"key": "PASSWORD_STRONG_MEDIUM", | |
"message": "Orta Şifre", | |
"priority": 2, | |
"value": "^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{7,15}$" | |
}, | |
{ | |
"key": "PASSWORD_STRONG_HIGH", | |
"message": "Güçlü Şifre", | |
"priority": 3, | |
"value": "^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[.:;,_'!?*@#$%^&+=]).{7,15}$" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment