Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
df14a256
Commit
df14a256
authored
Dec 09, 2019
by
Wolfgang Knopki
Browse files
email text adapted, hostname created from config file
parent
55626444
Pipeline
#354
passed with stage
in 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
config/config.js
View file @
df14a256
module
.
exports
=
{
development
:
{
app
:
{
hostname
:
'
m4lab.hft-stuttgart.de
'
,
name
:
'
User Account Management
'
,
port
:
process
.
env
.
PORT
||
9989
},
...
...
routes/routes.js
View file @
df14a256
...
...
@@ -314,7 +314,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: http
s
://
"
+
config
.
app
.
host
name
+
"
/reset/
"
+
token
+
"
\n
"
+
"
This password reset is only valid for 1 hour.
\n\n
"
+
"
Thanks,
\n
M4_LAB Team
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment