mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-24 08:03:53 +08:00
Merge branch 'xinnan-tech:main' into main
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