mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +00:00
change password check (#6656)
* change password check * update * Update views.py * optimize-code * remove min_len and level when frontend check password * remove too short level --------- Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
@@ -1689,7 +1689,6 @@ export const evaluatePasswordStrength = (password) => {
|
||||
else if (length >= 12) strength += 3;
|
||||
else if (length >= 8) strength += 2;
|
||||
else if (length >= 6) strength += 1;
|
||||
else if (length < 6) return 'too_short';
|
||||
|
||||
// Increased strength based on character type
|
||||
if (hasUppercase) strength += 1;
|
||||
|
Reference in New Issue
Block a user