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

email text adapted, hostname created from config file

parent b3c18b99
module.exports = {
development: {
app: {
hostname: 'm4lab.hft-stuttgart.de',
name: 'User Account Management',
hostname: 'm4lab.hft-stuttgart.de/account',
port: process.env.PORT || 9989
......
......@@ -391,7 +391,7 @@ module.exports = function (app, config, passport) {
emailSubject = "M4_LAB Password Reset";
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"+
"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"+
"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