mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-21 23:08:02 +00:00
🐛 Fix web interface login (#83)
All checks were successful
Docker Dev Build / docker build and publish (push) Successful in 6m44s
All checks were successful
Docker Dev Build / docker build and publish (push) Successful in 6m44s
修复登录跳转问题
This commit is contained in:
parent
1feb8efd46
commit
e8fc72c9de
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user