Adding confirmEmail scaffolding
- Also updating the UrlHelpExtensions to not have a dependency on the AccountController
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user