Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
VDS-951: Implement capability step by step migration of account page …
Browse files Browse the repository at this point in the history
…to b4 (#59)

Add separated View to b4 account page
  • Loading branch information
trueboroda committed Feb 24, 2021
1 parent da24aaa commit b81ed15
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions VirtoCommerce.Storefront/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ public async Task<ActionResult> GetAccount()
return View("customers/account", WorkContext);
}

[HttpGet("b4")]
public async Task<ActionResult> GetAccount2()
{
var authorizationResult = await _authorizationService.AuthorizeAsync(User, OnlyRegisteredUserAuthorizationRequirement.PolicyName);
if (!authorizationResult.Succeeded)
{
return Challenge();
}

// Customer should be already populated in WorkContext middle-ware
return View("customers/account_b4", WorkContext);
}

[HttpGet("order/{number}")]
public async Task<ActionResult> GetOrderDetails(string number)
{
Expand Down

0 comments on commit b81ed15

Please sign in to comment.