Browse Source
Merge pull request #9133 from abpframework/gterdem/account_locked_out
External authentication error when confirm email/phone is selected
pull/9149/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs
|
|
|
@ -213,8 +213,15 @@ namespace Volo.Abp.Account.Web.Pages.Account |
|
|
|
|
|
|
|
if (result.IsLockedOut) |
|
|
|
{ |
|
|
|
Logger.LogWarning($"External login callback error: 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) |
|
|
|
{ |
|
|
|
|