0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Add url.resolve for password reset email url

fixes #1604
This commit is contained in:
Hannah Wolfe 2013-12-01 17:46:10 +00:00
parent d69e87b625
commit d2d9db3067

View file

@ -2,6 +2,7 @@ var Ghost = require('../../ghost'),
config = require('../config'),
_ = require('underscore'),
path = require('path'),
url = require('url'),
when = require('when'),
api = require('../api'),
mailer = require('../mail'),
@ -164,7 +165,7 @@ adminControllers = {
api.users.generateResetToken(email).then(function (token) {
var siteLink = '<a href="' + config().url + '">' + config().url + '</a>',
resetUrl = config().url + '/ghost/reset/' + token + '/',
resetUrl = url.resolve(config().url, '/ghost/reset/') + token + '/',
resetLink = '<a href="' + resetUrl + '">' + resetUrl + '</a>',
message = {
to: email,