Commit df14a256 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

email text adapted, hostname created from config file

parent 55626444
Pipeline #354 passed with stage
in 16 seconds
module.exports = { module.exports = {
development: { development: {
app: { app: {
hostname: 'm4lab.hft-stuttgart.de',
name: 'User Account Management', name: 'User Account Management',
port: process.env.PORT || 9989 port: process.env.PORT || 9989
}, },
......
...@@ -314,7 +314,7 @@ module.exports = function (app, config, passport) { ...@@ -314,7 +314,7 @@ module.exports = function (app, config, passport) {
emailSubject = "M4_LAB Password Reset"; emailSubject = "M4_LAB Password Reset";
emailContent = "Hi User,\n\n"+ emailContent = "Hi User,\n\n"+
"we've received a request to reset your password. If you didn't make the request, just ignore this email.\n\n"+ "we've received a request to reset your password. If you didn't make the request, just ignore this email.\n\n"+
"Otherwise, you can reset your password using this link: http://" + req.headers.host + "/reset/" + token + "\n" + "Otherwise, you can reset your password using this link: https://" + config.app.hostname + "/reset/" + token + "\n" +
"This password reset is only valid for 1 hour.\n\n"+ "This password reset is only valid for 1 hour.\n\n"+
"Thanks,\nM4_LAB Team" "Thanks,\nM4_LAB Team"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment