From 3f26e2b8ac6f7c952c6aced41e99faf82b42df2e Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 30 Mar 2020 14:48:31 +0800 Subject: [PATCH] Refactor. --- .../src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs | 4 +--- 1 file changed, 1 insertion(+), 3 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 5f15df99b4..24e7732c9c 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 @@ -137,7 +137,7 @@ namespace Volo.Abp.Account.Web.Pages.Account { var schemes = await SchemeProvider.GetAllSchemesAsync(); - var providers = schemes + return schemes .Where(x => x.DisplayName != null || x.Name.Equals(AccountOptions.WindowsAuthenticationSchemeName, StringComparison.OrdinalIgnoreCase)) .Select(x => new ExternalProviderModel { @@ -145,8 +145,6 @@ namespace Volo.Abp.Account.Web.Pages.Account AuthenticationScheme = x.Name }) .ToList(); - - return providers.ToList(); } [UnitOfWork]