mirror of https://gitee.com/topiam/eiam
parent
8d3fe5cb44
commit
4cf8b5f562
|
@ -92,7 +92,7 @@ public class IdentityProviderAuthenticationServiceImpl implements
|
||||||
// 查询用户账号是否已经绑定
|
// 查询用户账号是否已经绑定
|
||||||
Optional<UserIdpBindPO> userIdpBindEntity = userIdpRepository.findByIdpIdAndUserId(identityProviderUserDetails.getProviderId(), accountId);
|
Optional<UserIdpBindPO> userIdpBindEntity = userIdpRepository.findByIdpIdAndUserId(identityProviderUserDetails.getProviderId(), accountId);
|
||||||
if (userIdpBindEntity.isPresent()) {
|
if (userIdpBindEntity.isPresent()) {
|
||||||
throw new UserBindIdentityProviderException("该账户已被其他三方账号绑定, 解绑后可重新绑定",
|
throw new UserBindIdentityProviderException("该账户已被其他三方账号绑定,解绑后可重新绑定",
|
||||||
HttpStatus.INTERNAL_SERVER_ERROR);
|
HttpStatus.INTERNAL_SERVER_ERROR);
|
||||||
}
|
}
|
||||||
// 查询idp账号是否已绑定其他账号
|
// 查询idp账号是否已绑定其他账号
|
||||||
|
|
Loading…
Reference in New Issue