1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +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

@@ -10,7 +10,6 @@ const propTypes = {
const PASSWORD_STRENGTH_VALUES = {
empty: { classNames: ['default', 'default', 'default', 'default'], textValue: '' },
too_short: { classNames: ['too-short', 'default', 'default', 'default'], textValue: 'too short' },
weak: { classNames: ['weak', 'default', 'default', 'default'], textValue: 'weak' },
medium: { classNames: ['medium', 'medium', 'default', 'default'], textValue: 'medium' },
strong: { classNames: ['strong', 'strong', 'strong', 'default'], textValue: 'strong' },