Allow the Email Verification Host to be specified

...in addition to "host" in config.json..
This commit is contained in:
Tony Sukiennik 2014-10-18 16:05:41 -07:00
parent 95e4d1f061
commit 3937d44ee8
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ User.prototype.verify = function(options, fn) {
options.protocol = options.protocol || 'http';
var app = userModel.app;
options.host = emailOptions.host || (app && app.get('verificationHost')) || (app && app.get('host')) || 'localhost';
options.host = options.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 ||