test(users): send restore password mail

This commit is contained in:
OldHawk
2017-10-22 01:58:47 +08:00
parent fdea860a57
commit c98ac2e301
2 changed files with 13 additions and 2 deletions

View File

@@ -302,6 +302,11 @@ exports.sendOfficial = function (req, res) {
if (config.secure && config.secure.ssl === true) {
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;
res.render(path.resolve('modules/invitations/server/templates/invite-sign-up-email'), {
to_email: req.body.email,