Browse Source

Removed UnitOfWork attribute in razor page model.

pull/3348/head
maliming 7 years ago
parent
commit
65a7ea84a2
  1. 3
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs
  2. 1
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

3
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml.cs

@ -87,7 +87,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
return Page(); return Page();
} }
[UnitOfWork] //TODO: Will be removed when we implement action filter
public virtual async Task<IActionResult> OnPostAsync(string action) public virtual async Task<IActionResult> OnPostAsync(string action)
{ {
await CheckLocalLoginAsync(); await CheckLocalLoginAsync();
@ -140,7 +139,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
return RedirectSafely(ReturnUrl, ReturnUrlHash); return RedirectSafely(ReturnUrl, ReturnUrlHash);
} }
[UnitOfWork]
public virtual async Task<IActionResult> OnPostExternalLogin(string provider) public virtual async Task<IActionResult> OnPostExternalLogin(string provider)
{ {
var redirectUrl = Url.Page("./Login", pageHandler: "ExternalLoginCallback", values: new { ReturnUrl, ReturnUrlHash }); var redirectUrl = Url.Page("./Login", pageHandler: "ExternalLoginCallback", values: new { ReturnUrl, ReturnUrlHash });
@ -150,7 +148,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
return await Task.FromResult(Challenge(properties, provider)); return await Task.FromResult(Challenge(properties, provider));
} }
[UnitOfWork]
public virtual async Task<IActionResult> OnGetExternalLoginCallbackAsync(string returnUrl = "", string returnUrlHash = "", string remoteError = null) public virtual async Task<IActionResult> OnGetExternalLoginCallbackAsync(string returnUrl = "", string returnUrlHash = "", string remoteError = null)
{ {
//TODO: Did not implemented Identity Server 4 sample for this method (see ExternalLoginCallback in Quickstart of IDS4 sample) //TODO: Did not implemented Identity Server 4 sample for this method (see ExternalLoginCallback in Quickstart of IDS4 sample)

1
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

@ -36,7 +36,6 @@ namespace Volo.Abp.Account.Web.Pages.Account
await CheckSelfRegistrationAsync(); await CheckSelfRegistrationAsync();
} }
[UnitOfWork] //TODO: Will be removed when we implement action filter
public virtual async Task<IActionResult> OnPostAsync() public virtual async Task<IActionResult> OnPostAsync()
{ {
ValidateModel(); ValidateModel();

Loading…
Cancel
Save