aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/users.js')
-rw-r--r--routes/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 37ce9774..46a8f8f8 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -121,7 +121,7 @@
if (host === 'localhost') {
host += ':3000';
}
- url = "" + req.protocol + "://" + req.hostname + ":3000/verify/" + token;
+ url = "" + req.protocol + "://" + host + "/verify/" + token;
return res.render('users/welcome', {
user: req.params.user,
layout: 'mail',