fix(users): fix restore password mail send issues

This commit is contained in:
OldHawk
2017-10-22 02:12:38 +08:00
parent 701f736082
commit 34f5a5dc61
2 changed files with 4 additions and 7 deletions

View File

@@ -302,8 +302,7 @@ exports.sendOfficial = function (req, res) {
if (config.secure && config.secure.ssl === true) {
httpTransport = 'https://';
}
var baseUrl = (httpTransport + req.headers.host) || config.domain;
var baseUrl = req.app.get('domain') || httpTransport + req.headers.host;
res.render(path.resolve('modules/invitations/server/templates/invite-sign-up-email'), {
to_email: req.body.email,
name: req.user.displayName,