mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
30 lines
955 B
C#
30 lines
955 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Controllers;
|
|
|
|
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",
|
|
values: new { userId, code },
|
|
protocol: scheme);
|
|
}
|
|
|
|
public static string ResetPasswordCallbackLink(this IUrlHelper urlHelper, string userId, string code, string scheme)
|
|
{
|
|
return urlHelper.Action(
|
|
action: nameof(AccountController.ResetPassword),
|
|
controller: "Account",
|
|
values: new { userId, code },
|
|
protocol: scheme);
|
|
}
|
|
}
|
|
}
|