mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
d69e87b625
commit
d2d9db3067
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue