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