change password rule (#4804)

* change password rule

* change password.tset.ts
This commit is contained in:
dreamer6680
2025-05-13 18:20:11 +08:00
committed by GitHub
parent 3688842cc7
commit 12acaf491c
11 changed files with 25 additions and 25 deletions

View File

@@ -5,7 +5,7 @@ export const checkPasswordRule = (password: string) => {
/[A-Z]/, // Contains uppercase letters
/[!@#$%^&*()_+=-]/ // Contains special characters
];
const validChars = /^[\dA-Za-z!@#$%^&*()_+=-]{6,100}$/;
const validChars = /^[\dA-Za-z!@#$%^&*()_+=-]{8,100}$/;
// Check length and valid characters
if (!validChars.test(password)) return false;