Adding confirmEmail scaffolding

- Also updating the UrlHelpExtensions to not have a dependency on the AccountController
This commit is contained in:
Eric Fleming
2019-06-21 21:39:52 -04:00
parent e19ade962a
commit c2e37b9019
3 changed files with 60 additions and 5 deletions

View File

@@ -1,14 +1,12 @@
using Microsoft.eShopWeb.Web.Controllers;
namespace Microsoft.AspNetCore.Mvc
namespace Microsoft.AspNetCore.Mvc
{
public static class UrlHelperExtensions
{
public static string EmailConfirmationLink(this IUrlHelper urlHelper, string userId, string code, string scheme)
{
return urlHelper.Action(
action: nameof(AccountController.ConfirmEmail),
controller: "Account",
action: "GET",
controller: "ConfirmEmail",
values: new { userId, code },
protocol: scheme);
}