fix(users): fix restore password mail send issues

This commit is contained in:
OldHawk
2017-10-22 02:06:43 +08:00
parent c98ac2e301
commit 701f736082
2 changed files with 2 additions and 10 deletions

View File

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