diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs index 004df26348..26881d9e5f 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs @@ -213,16 +213,13 @@ namespace Volo.Abp.Account.Web.Pages.Account if (result.IsLockedOut) { - // throw new UserFriendlyException("Cannot proceed because user is locked out!"); Logger.LogWarning($"Cannot proceed because user is locked out!"); return RedirectToPage("./LockedOut"); } if (result.IsNotAllowed) { - // throw new UserFriendlyException("External login callback error: User is Not Allowed!"); Logger.LogWarning($"External login callback error: User is Not Allowed!"); - // Returns a view informing the user about the locked account return RedirectToPage("./LockedOut"); }