Commit 2a1a03fe authored by 李健华's avatar 李健华

登陆行为验证去掉新增租户验证

parent dae828bd
......@@ -132,7 +132,7 @@ public class LoginInterceptorAspect {
*/
sendEvent(UserLoginRegEvent.SubEventType.user_attempt_login, device, phone, deviceId, realIp, null, tenantId);
LoginRefuseResult result = verification(scDeviceId, phone, device);
LoginRefuseResult result = verification(scDeviceId, phone, device, tenantId);
Object loginResult = null;
try {
......@@ -158,7 +158,7 @@ public class LoginInterceptorAspect {
* @param phone
* @return
*/
private LoginRefuseResult verification(String deviceId, String phone, Device device) {
private LoginRefuseResult verification(String deviceId, String phone, Device device, Integer tenantId) {
try {
/**
* 默认code不需要
......@@ -175,6 +175,12 @@ public class LoginInterceptorAspect {
return LoginRefuseResult.builder()
.isPass(Boolean.TRUE).build();
}
// 如果租户非羊小咩放过
if (!tenantId.equals(TenantUtil.TENANT_DEFAULT) || null == tenantId) {
return LoginRefuseResult.builder()
.isPass(Boolean.TRUE).build();
}
/**
* 阈值
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment