|  | @@ -78,10 +78,10 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
 | 
	
		
			
				|  |  |  				throw new LockedException("用户不存在");
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  			//如果机构不一致,不允许跨机构注册
 | 
	
		
			
				|  |  | -			if(loginEntity.getTenantId() != null && loginEntity.getTenantId() != 0 &&
 | 
	
		
			
				|  |  | -					!loginEntity.getTenantId().equals(user.getTenantId())){
 | 
	
		
			
				|  |  | -				throw new LockedException("用户已注册");
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  | +//			if(loginEntity.getTenantId() != null && loginEntity.getTenantId() != 0 &&
 | 
	
		
			
				|  |  | +//					!loginEntity.getTenantId().equals(user.getTenantId())){
 | 
	
		
			
				|  |  | +//				throw new LockedException("用户已注册");
 | 
	
		
			
				|  |  | +//			}
 | 
	
		
			
				|  |  |  			if (StringUtils.isNotBlank(deviceNum)) {
 | 
	
		
			
				|  |  |  				sysUserDeviceService.bindDevice(clientId, user.getId(), deviceNum, userInfo.getSysUser().getTenantId());
 | 
	
		
			
				|  |  |  			}
 |