新功能(dvadmin): 可配置取消redis,文件上传问题修复
parent
a56e064924
commit
306a72e8be
|
@ -101,4 +101,4 @@ class RedisOpAuthJwtAuthentication(OpAuthJwtAuthentication):
|
||||||
return user, token
|
return user, token
|
||||||
else:
|
else:
|
||||||
raise exceptions.AuthenticationFailed("登录信息失效,请重新登录!")
|
raise exceptions.AuthenticationFailed("登录信息失效,请重新登录!")
|
||||||
return None
|
return res
|
||||||
|
|
|
@ -44,5 +44,5 @@ API_LOG_ENABLE = True
|
||||||
API_LOG_METHODS = ['POST', 'DELETE', 'PUT'] # 'ALL' or ['POST', 'DELETE']
|
API_LOG_METHODS = ['POST', 'DELETE', 'PUT'] # 'ALL' or ['POST', 'DELETE']
|
||||||
# 接口权限
|
# 接口权限
|
||||||
INTERFACE_PERMISSION = True
|
INTERFACE_PERMISSION = True
|
||||||
# 是否开启
|
# 是否开启登录ip转换成城市位置
|
||||||
ENABLE_LOGIN_LOCATION = False
|
ENABLE_LOGIN_LOCATION = True
|
||||||
|
|
Loading…
Reference in New Issue