mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +08:00
#18425: Send challenge email could use a wrong root url
Work Item: 18425 --HG-- branch : 1.x
This commit is contained in:
@@ -150,7 +150,9 @@ namespace Orchard.Users.Controllers {
|
||||
siteUrl = HttpContext.Request.ToRootUrlString();
|
||||
}
|
||||
|
||||
_userService.SendChallengeEmail(user.As<UserPart>(), nonce => VirtualPathUtility.Combine(siteUrl, Url.Action("ChallengeEmail", "Account", new { Area = "Orchard.Users", nonce = nonce })));
|
||||
siteUrl = siteUrl.TrimEnd('/');
|
||||
|
||||
_userService.SendChallengeEmail(user.As<UserPart>(), nonce => siteUrl + "/" + Url.Action("ChallengeEmail", "Account", new {Area = "Orchard.Users", nonce = nonce}).TrimStart('/') );
|
||||
|
||||
foreach (var userEventHandler in _userEventHandlers) {
|
||||
userEventHandler.SentChallengeEmail(user);
|
||||
|
||||
Reference in New Issue
Block a user