From 695cea7eb1490d046a5f08e0e9f17b530b0564a2 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Thu, 27 Jun 2019 09:54:17 +0300 Subject: [PATCH] Fix: Duplicate SignInResult.RequiresTwoFactor check code in account module resolves https://github.com/abpframework/abp/issues/1386#event-2443099318 --- .../src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs | 5 ----- 1 file changed, 5 deletions(-) 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 4de08796bd..aa168344a5 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 @@ -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"]);