解决登录时输入无效租户名称登录失败提示不友好问题,还原修改

This commit is contained in:
shizhong 2023-04-03 12:56:25 +08:00
parent 92cf4b9e63
commit 2b1e5f1a3a
1 changed files with 0 additions and 4 deletions

View File

@ -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;
}