Template
Update some thangs
This commit is contained in:
1 parent
d16f4287ce
commit
56fe2a2af3
4 files changed
+32
-108
No files matched your search
@@ -24,9 +24,11 @@ export const validatePassword = (password: string): boolean => {
|
||||
if (
|
||||
password.length < 8 ||
|
||||
password.length > 100 ||
|
||||
/\s/.test(password) ||
|
||||
!/\d/.test(password) ||
|
||||
!/[a-z]/.test(password) ||
|
||||
!/[A-Z]/.test(password)
|
||||
!/[A-Z]/.test(password) ||
|
||||
!/[\p{P}\p{S}]/u.test(password)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user