1
This commit is contained in:
@@ -48,13 +48,13 @@ namespace TightWiki.Controllers
|
||||
returnUrl ??= Url.Content("~/");
|
||||
if (remoteError != null)
|
||||
{
|
||||
return NotifyOfError($"Error from external provider: {remoteError}");
|
||||
return NotifyOfError($"外部提供程序出错: {remoteError}");
|
||||
}
|
||||
|
||||
var info = await SignInManager.GetExternalLoginInfoAsync();
|
||||
if (info == null)
|
||||
{
|
||||
return NotifyOfError($"Failed to get information from external provider");
|
||||
return NotifyOfError($"无法从外部提供程序获取信息");
|
||||
}
|
||||
|
||||
var user = await UserManager.FindByLoginAsync(info.LoginProvider, info.ProviderKey);
|
||||
@@ -83,7 +83,7 @@ namespace TightWiki.Controllers
|
||||
var email = info.Principal.FindFirstValue(ClaimTypes.Email).EnsureNotNull();
|
||||
if (string.IsNullOrEmpty(email))
|
||||
{
|
||||
return NotifyOfError($"The email address was not supplied by the external provider.");
|
||||
return NotifyOfError($"电子邮件地址不是由外部提供商提供的.");
|
||||
}
|
||||
|
||||
user = await UserManager.FindByEmailAsync(email);
|
||||
|
||||
Reference in New Issue
Block a user