fix: idp账号重复绑定的问题

Signed-off-by: 杨柳清风 <git@dev86.site>
pull/84/head
杨柳清风 2024-05-10 10:27:31 +00:00 committed by Gitee
parent 8d3fe5cb44
commit 4cf8b5f562
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class IdentityProviderAuthenticationServiceImpl implements
// 查询用户账号是否已经绑定
Optional<UserIdpBindPO> userIdpBindEntity = userIdpRepository.findByIdpIdAndUserId(identityProviderUserDetails.getProviderId(), accountId);
if (userIdpBindEntity.isPresent()) {
throw new UserBindIdentityProviderException("该账户已被其他三方账号绑定, 解绑后可重新绑定",
throw new UserBindIdentityProviderException("该账户已被其他三方账号绑定,解绑后可重新绑定",
HttpStatus.INTERNAL_SERVER_ERROR);
}
// 查询idp账号是否已绑定其他账号