reset password sending wrong link

Topics: Administration
Nov 9, 2015 at 7:30 PM
So I have the email module up and running, the test works. When I request my password be reset via email, I get a link sent to me but it is using localhost. I am pretty sure this might just be a configuration setting I have wrong but I cannot find anything about it.
Nov 10, 2015 at 8:09 AM
I think it uses the Base URL setting in the dashboard under Settings. If that one is empty, it uses the current request url. You can see this in Orchard.Users/Controllers/AccountController:194-199:
var siteUrl = _orchardServices.WorkContext.CurrentSite.BaseUrl;
if (String.IsNullOrWhiteSpace(siteUrl)) {
    siteUrl = HttpContext.Request.ToRootUrlString();
}

_userService.SendLostPasswordEmail(username, nonce => Url.MakeAbsolute(Url.Action("LostPassword", "Account", new { Area = "Orchard.Users", nonce = nonce }), siteUrl));
Nov 10, 2015 at 6:47 PM
I figured it was something dumb on my part. Thanks!