From 085b3b96ad352b517da1944cdf711d8c6eea6513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9F=E5=8B=87?= Date: Sun, 19 Mar 2023 21:38:29 +0800 Subject: [PATCH] feat: allow http channel not set password to use chatgpt --- channel/http/auth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channel/http/auth.py b/channel/http/auth.py index 67b2ec4..3e2756a 100644 --- a/channel/http/auth.py +++ b/channel/http/auth.py @@ -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')