mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
feat(operation_log): 新增登录位置和处理时间字段
在操作日志中新增登录位置和处理时间字段,以提供更详细的日志信息。同时优化了IP地址归属地获取逻辑,并调整了日志展示界面的列宽。
This commit is contained in:
@@ -172,11 +172,12 @@ class Settings(BaseSettings):
|
||||
# ================================================= #
|
||||
# ***************** 演示模型配置 ***************** #
|
||||
# ================================================= #
|
||||
DEMO_ENABLE: bool = False # 是否开启演示模式
|
||||
DEMO_ENABLE: bool # 是否开启演示模式
|
||||
DEMO_WHITE_LIST_PATH: List[str] = [ # 演示白名单
|
||||
"/system/auth/login",
|
||||
"/system/auth/token/refresh",
|
||||
"/system/auth/captcha/get"
|
||||
"/api/v1/system/auth/login",
|
||||
"/api/v1/system/auth/token/refresh",
|
||||
"/api/v1/system/auth/captcha/get",
|
||||
"/api/v1/system/auth/logout",
|
||||
]
|
||||
DEMO_BLACK_LIST_PATH: List[str] = [ # 演示黑名单
|
||||
"/auth/login"
|
||||
|
||||
Reference in New Issue
Block a user