mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Merge pull request #1886 from Kukks/invite-link
Allow admins to invite new users
This commit is contained in:
@@ -15,13 +15,16 @@ namespace Microsoft.AspNetCore.Mvc
|
||||
new { userId, code }, scheme, host, pathbase);
|
||||
}
|
||||
|
||||
public static string ResetPasswordCallbackLink(this IUrlHelper urlHelper, string userId, string code, string scheme)
|
||||
public static string ResetPasswordCallbackLink(this LinkGenerator urlHelper, string userId, string code, string scheme, HostString host, string pathbase)
|
||||
{
|
||||
return urlHelper.Action(
|
||||
action: nameof(AccountController.ResetPassword),
|
||||
return urlHelper.GetUriByAction(
|
||||
action: nameof(AccountController.SetPassword),
|
||||
controller: "Account",
|
||||
values: new { userId, code },
|
||||
protocol: scheme);
|
||||
scheme: scheme,
|
||||
host:host,
|
||||
pathBase: pathbase
|
||||
);
|
||||
}
|
||||
|
||||
public static string PaymentRequestLink(this LinkGenerator urlHelper, string paymentRequestId, string scheme, HostString host, string pathbase)
|
||||
|
||||
Reference in New Issue
Block a user