1
0
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:
Michael An
2024-08-28 17:52:54 +08:00
committed by GitHub
parent 0aa7c7da00
commit fedfbf9bf4
13 changed files with 48 additions and 103 deletions

View File

@@ -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;