Merge pull request #1886 from Kukks/invite-link

Allow admins to invite new users
This commit is contained in:
Nicolas Dorier
2020-09-19 11:15:38 +09:00
committed by GitHub
20 changed files with 531 additions and 300 deletions

View File

@@ -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)