🐛 Fix web interface login (#83)
All checks were successful
Docker Dev Build / docker build and publish (push) Successful in 6m44s

修复登录跳转问题
This commit is contained in:
loneshore 2024-08-12 15:38:32 +08:00 committed by GitHub
parent 1feb8efd46
commit e8fc72c9de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ TOKEN_EXPIRE_MINUTES = 30
def authentication(): def authentication():
def inner(token: Optional[str] = Header(...)): def inner(token: Optional[str] = Header(None)):
if Config.WEB_SECRET_KEY: if Config.WEB_SECRET_KEY:
if token == Config.WEB_SECRET_KEY: if token == Config.WEB_SECRET_KEY:
return return