mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-02 02:00:58 +01:00
fix(users): fix restore password mail send issues
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user