fix: 修复第三方登录实现问题

This commit is contained in:
橙子
2024-01-09 22:09:22 +08:00
parent 9d826c7063
commit 2325c83455

View File

@@ -66,7 +66,7 @@ namespace Yi.Framework.Rbac.Application.Services.Authentication
{
(var openId, var name) = await GetOpenIdAndNameAsync(scheme);
var userId = CurrentUser.Id;
var authEntityAny = await _repository.AnyAsync(x => x.OpenId == openId && x.AuthType == scheme);
var authEntityAny = await _repository.IsAnyAsync(x => x.OpenId == openId && x.AuthType == scheme);
if (authEntityAny)
{
throw new UserFriendlyException("绑定失败,该第三方账号已被注册");