Re-enabling password reset for email signups
This commit is contained in:
@ -581,9 +581,9 @@ exports.postForgot = function(req, res, next) {
|
|||||||
from: 'Team@freecodecamp.com',
|
from: 'Team@freecodecamp.com',
|
||||||
subject: 'Reset your Free Code Camp password',
|
subject: 'Reset your Free Code Camp password',
|
||||||
text: [
|
text: [
|
||||||
'You are receiving this email because you (or someone else)',
|
'You are receiving this email because you (or someone else)\n',
|
||||||
'requested we reset your Free Code Camp account\'s password.\n\n',
|
'requested we reset your Free Code Camp account\'s password.\n\n',
|
||||||
'Please click on the following link, or paste this into your',
|
'Please click on the following link, or paste this into your\n',
|
||||||
'browser to complete the process:\n\n',
|
'browser to complete the process:\n\n',
|
||||||
'http://',
|
'http://',
|
||||||
req.headers.host,
|
req.headers.host,
|
||||||
@ -592,7 +592,7 @@ exports.postForgot = function(req, res, next) {
|
|||||||
'\n\n',
|
'\n\n',
|
||||||
'If you did not request this, please ignore this email and',
|
'If you did not request this, please ignore this email and',
|
||||||
'your password will remain unchanged.\n'
|
'your password will remain unchanged.\n'
|
||||||
].join(' ')
|
].join('')
|
||||||
};
|
};
|
||||||
transporter.sendMail(mailOptions, function(err) {
|
transporter.sendMail(mailOptions, function(err) {
|
||||||
if (err) { return done(err); }
|
if (err) { return done(err); }
|
||||||
|
@ -2,7 +2,7 @@ extends ../layout
|
|||||||
|
|
||||||
block content
|
block content
|
||||||
.col-sm-8.col-sm-offset-2
|
.col-sm-8.col-sm-offset-2
|
||||||
form(method='POST')
|
form(action='/post/reset/', method='POST')
|
||||||
legend Reset Password
|
legend Reset Password
|
||||||
input(type='hidden', name='_csrf', value=_csrf)
|
input(type='hidden', name='_csrf', value=_csrf)
|
||||||
.form-group
|
.form-group
|
||||||
|
Reference in New Issue
Block a user