Commit 2b1e5f1a3a16459d1b236d621413fb80bab17637
1 parent
92cf4b9e
解决登录时输入无效租户名称登录失败提示不友好问题,还原修改
Showing
1 changed file
with
0 additions
and
4 deletions
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/core/security/TenantSecurityWebFilter.java
| ... | ... | @@ -79,10 +79,6 @@ public class TenantSecurityWebFilter extends ApiRequestFilter { |
| 79 | 79 | if (tenantId == null) { |
| 80 | 80 | log.error("[doFilterInternal][URL({}/{}) 未传递租户编号]", request.getRequestURI(), request.getMethod()); |
| 81 | 81 | String msg = "请求的租户标识未传递,请进行排查"; |
| 82 | - if ("/admin-api/system/auth/login".equals(request.getRequestURI())) | |
| 83 | - { | |
| 84 | - msg = "登录失败,租户名称不正确"; | |
| 85 | - } | |
| 86 | 82 | ServletUtils.writeJSON(response, CommonResult.error(GlobalErrorCodeConstants.BAD_REQUEST.getCode(), msg)); |
| 87 | 83 | return; |
| 88 | 84 | } | ... | ... |