update:为安全考虑,绑定设备功能未处理之前,只限制一个账号注册

This commit is contained in:
hrz
2025-02-16 00:58:31 +08:00
parent 0bdc205497
commit 6566fc8ae3
5 changed files with 43 additions and 26 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ def check_password(password):
:return: 如果密码满足条件,则返回True;否则返回False。
"""
# 检查密码长度
if len(password) < 10:
if len(password) < 8:
return False
# 检查是否包含英文字符和数字
@@ -116,7 +116,7 @@ def check_password(password):
if "xiaozhi" in password:
return False
if "123456" in password:
if "1234" in password:
return False
# 如果满足所有条件,则返回True