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 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]

Loading…
Cancel
Save