Browse Source

Merge pull request #3780 from liangshiw/liangshiwei/remove-unnecessary-unitofwork

Remove UnitOfWork Attribute in the IdentityServerSupportedLoginModel
pull/3797/head
maliming 7 years ago
committed by GitHub
parent
commit
b19c86c8a1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs

12
modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs

@ -29,12 +29,12 @@ namespace Volo.Abp.Account.Web.Pages.Account
public IdentityServerSupportedLoginModel(
IAuthenticationSchemeProvider schemeProvider,
IOptions<AbpAccountOptions> accountOptions,
IIdentityServerInteractionService interaction,
IClientStore clientStore,
IOptions<AbpAccountOptions> accountOptions,
IIdentityServerInteractionService interaction,
IClientStore clientStore,
IEventService identityServerEvents)
:base(
schemeProvider,
schemeProvider,
accountOptions)
{
Interaction = interaction;
@ -95,7 +95,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
return Page();
}
[UnitOfWork] //TODO: Will be removed when we implement action filter
public override async Task<IActionResult> OnPostAsync(string action)
{
if (action == "Cancel")
@ -116,7 +115,7 @@ namespace Volo.Abp.Account.Web.Pages.Account
ValidateModel();
ExternalProviders = await GetExternalProviders();
EnableLocalLogin = await SettingProvider.IsTrueAsync(AccountSettingNames.EnableLocalLogin);
await ReplaceEmailToUsernameOfInputIfNeeds();
@ -166,7 +165,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
return RedirectSafely(ReturnUrl, ReturnUrlHash);
}
[UnitOfWork]
public override async Task<IActionResult> OnPostExternalLogin(string provider)
{
if (AccountOptions.WindowsAuthenticationSchemeName == provider)

Loading…
Cancel
Save