mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: Modify password verification regular expression
--bug=1057464 --user=王孝刚 【对话用户】用户-修改密码-修改密码为「Abc123」,修改成功了-与密码规则不符 https://www.tapd.cn/62980211/s/1718453
This commit is contained in:
parent
3aa0847506
commit
fe066aea68
|
|
@ -35,8 +35,10 @@ from django.core.mail import send_mail
|
|||
from django.utils.translation import get_language
|
||||
|
||||
PASSWORD_REGEX = re.compile(
|
||||
r"^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z_!@#$%^&*`~.()-+=]+$)(?![a-z0-9]+$)(?![a-z_!@#$%^&*`~()-+=]+$)"
|
||||
r"(?![0-9_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9_!@#$%^&*`~.()-+=]{6,20}$"
|
||||
r"^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z_!@#$%^&*`~.()-+=]+$)"
|
||||
r"(?![a-z0-9]+$)(?![a-z_!@#$%^&*`~()-+=]+$)(?![0-9_!@#$%^&*`~()-+=]+$)"
|
||||
r"(?=.*[_!@#$%^&*`~.()-+=])"
|
||||
r"[a-zA-Z0-9_!@#$%^&*`~.()-+=]{6,20}$"
|
||||
)
|
||||
|
||||
version, get_key = Cache_Version.SYSTEM.value
|
||||
|
|
|
|||
Loading…
Reference in New Issue