aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/users.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/users.coffee')
-rw-r--r--src/routes/users.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/users.coffee b/src/routes/users.coffee
index 307f7ab6..838ef631 100644
--- a/src/routes/users.coffee
+++ b/src/routes/users.coffee
@@ -88,7 +88,7 @@ module.exports = (sessions) ->
db.set("token:#{token}", req.body.username)
host = req.hostname
host += ':3000' if host is 'localhost'
- url = "#{req.protocol}://#{req.hostname}:3000/verify/#{token}"
+ url = "#{req.protocol}://#{host}/verify/#{token}"
res.render('users/welcome',
user: req.params.user,