mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-03-02 08:10:07 +08:00
feat: allow http channel not set password to use chatgpt
This commit is contained in:
@@ -83,6 +83,9 @@ def identify(request):
|
||||
:return: list
|
||||
"""
|
||||
try:
|
||||
authPassword = channel_conf(const.HTTP).get('http_auth_password')
|
||||
if (not authPassword):
|
||||
return True
|
||||
if (request is None):
|
||||
return False
|
||||
authorization = request.cookies.get('Authorization')
|
||||
|
||||
Reference in New Issue
Block a user