解决登录时输入无效租户名称登录失败提示不友好问题,还原修改
This commit is contained in:
parent
92cf4b9e63
commit
2b1e5f1a3a
|
@ -79,10 +79,6 @@ public class TenantSecurityWebFilter extends ApiRequestFilter {
|
|||
if (tenantId == null) {
|
||||
log.error("[doFilterInternal][URL({}/{}) 未传递租户编号]", request.getRequestURI(), request.getMethod());
|
||||
String msg = "请求的租户标识未传递,请进行排查";
|
||||
if ("/admin-api/system/auth/login".equals(request.getRequestURI()))
|
||||
{
|
||||
msg = "登录失败,租户名称不正确";
|
||||
}
|
||||
ServletUtils.writeJSON(response, CommonResult.error(GlobalErrorCodeConstants.BAD_REQUEST.getCode(), msg));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue