Browse Source

Fix: Duplicate SignInResult.RequiresTwoFactor check code in account module

resolves https://github.com/abpframework/abp/issues/1386#event-2443099318
pull/1394/head
Yunus Emre Kalkan 7 years ago
parent
commit
695cea7eb1
  1. 5
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs

5
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs

@ -113,11 +113,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
return Page();
}
if (result.RequiresTwoFactor)
{
return RedirectToPage("./SendSecurityCode");
}
if (result.IsNotAllowed)
{
Alerts.Warning(L["LoginIsNotAllowed"]);

Loading…
Cancel
Save