fix(users): fix restore password mail send issues

This commit is contained in:
OldHawk
2017-10-22 01:49:53 +08:00
parent d4d873ee92
commit ea69331ea5
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ exports.forgot = function (req, res, next) {
if (config.secure && config.secure.ssl === true) {
httpTransport = 'https://';
}
var baseUrl = config.domain || httpTransport + req.headers.host;
var baseUrl = req.app.get('domain') || config.domain || httpTransport + req.headers.host;
res.render(path.resolve('modules/users/server/templates/reset-password-email'), {
name: user.displayName,
appName: config.app.title,