Browse Source

Refactor.

pull/3410/head
maliming 7 years ago
parent
commit
3f26e2b8ac
  1. 4
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs

4
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 schemes = await SchemeProvider.GetAllSchemesAsync();
var providers = schemes return schemes
.Where(x => x.DisplayName != null || x.Name.Equals(AccountOptions.WindowsAuthenticationSchemeName, StringComparison.OrdinalIgnoreCase)) .Where(x => x.DisplayName != null || x.Name.Equals(AccountOptions.WindowsAuthenticationSchemeName, StringComparison.OrdinalIgnoreCase))
.Select(x => new ExternalProviderModel .Select(x => new ExternalProviderModel
{ {
@ -145,8 +145,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
AuthenticationScheme = x.Name AuthenticationScheme = x.Name
}) })
.ToList(); .ToList();
return providers.ToList();
} }
[UnitOfWork] [UnitOfWork]

Loading…
Cancel
Save