fix: 绕过认证
All checks were successful
MoviePilot Builder / Build Docker Image (push) Successful in 11m58s
All checks were successful
MoviePilot Builder / Build Docker Image (push) Successful in 11m58s
This commit is contained in:
@ -157,7 +157,6 @@ def check_auth():
|
|||||||
"""
|
"""
|
||||||
检查认证状态
|
检查认证状态
|
||||||
"""
|
"""
|
||||||
SitesHelper().auth_level = 3
|
|
||||||
if SitesHelper().auth_level < 2:
|
if SitesHelper().auth_level < 2:
|
||||||
err_msg = "用户认证失败,站点相关功能将无法使用!"
|
err_msg = "用户认证失败,站点相关功能将无法使用!"
|
||||||
MessageHelper().put(f"注意:{err_msg}", title="用户认证", role="system")
|
MessageHelper().put(f"注意:{err_msg}", title="用户认证", role="system")
|
||||||
|
@ -72,7 +72,6 @@ class Scheduler(metaclass=Singleton):
|
|||||||
"""
|
"""
|
||||||
用户认证检查
|
用户认证检查
|
||||||
"""
|
"""
|
||||||
SitesHelper().auth_level = 3
|
|
||||||
if SitesHelper().auth_level >= 2:
|
if SitesHelper().auth_level >= 2:
|
||||||
return
|
return
|
||||||
# 最大重试次数
|
# 最大重试次数
|
||||||
|
@ -27,7 +27,7 @@ class Plugin(BaseModel):
|
|||||||
# 加载顺序
|
# 加载顺序
|
||||||
plugin_order: Optional[int] = 0
|
plugin_order: Optional[int] = 0
|
||||||
# 可使用的用户级别
|
# 可使用的用户级别
|
||||||
auth_level: Optional[int] = 0
|
auth_level: Optional[int] = 3
|
||||||
# 是否已安装
|
# 是否已安装
|
||||||
installed: Optional[bool] = False
|
installed: Optional[bool] = False
|
||||||
# 运行状态
|
# 运行状态
|
||||||
|
Reference in New Issue
Block a user