|
|
@ -213,9 +213,16 @@ namespace Volo.Abp.Account.Web.Pages.Account
|
|
|
|
|
|
|
|
|
|
|
|
if (result.IsLockedOut)
|
|
|
|
if (result.IsLockedOut)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
Logger.LogWarning($"External login callback error: user is locked out!");
|
|
|
|
throw new UserFriendlyException("Cannot proceed because user is locked out!");
|
|
|
|
throw new UserFriendlyException("Cannot proceed because user is locked out!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (result.IsNotAllowed)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Logger.LogWarning($"External login callback error: user is not allowed!");
|
|
|
|
|
|
|
|
throw new UserFriendlyException("Cannot proceed because user is not allowed!");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (result.Succeeded)
|
|
|
|
if (result.Succeeded)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return RedirectSafely(returnUrl, returnUrlHash);
|
|
|
|
return RedirectSafely(returnUrl, returnUrlHash);
|
|
|
|