From 95e4d1f061ccace57f6ef19b96e43c7e8b4e5f93 Mon Sep 17 00:00:00 2001 From: Tony Sukiennik Date: Sat, 18 Oct 2014 16:02:59 -0700 Subject: [PATCH] Update user.js --- common/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/models/user.js b/common/models/user.js index d4a28a5c..5df1d58a 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -233,7 +233,7 @@ User.prototype.verify = function(options, fn) { options.protocol = options.protocol || 'http'; var app = userModel.app; - options.host = options.host || (app && app.get('host')) || 'localhost'; + options.host = emailOptions.host || (app && app.get('verificationHost')) || (app && app.get('host')) || 'localhost'; options.port = options.port || (app && app.get('port')) || 3000; options.restApiRoot = options.restApiRoot || (app && app.get('restApiRoot')) || '/api'; options.verifyHref = options.verifyHref ||