mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00
change password rule (#4804)
* change password rule * change password.tset.ts
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user