Merge branch 'abp' of https://gitee.com/ccnetcore/Yi into abp
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Yi.Framework.Rbac.Application.Services.Authentication
|
|||||||
{
|
{
|
||||||
(var openId, var name) = await GetOpenIdAndNameAsync(scheme);
|
(var openId, var name) = await GetOpenIdAndNameAsync(scheme);
|
||||||
var userId = CurrentUser.Id;
|
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)
|
if (authEntityAny)
|
||||||
{
|
{
|
||||||
throw new UserFriendlyException("绑定失败,该第三方账号已被注册");
|
throw new UserFriendlyException("绑定失败,该第三方账号已被注册");
|
||||||
|
|||||||
Reference in New Issue
Block a user