mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 15:13:55 +08:00
update:为安全考虑,绑定设备功能未处理之前,只限制一个账号注册
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user