Allow the Email Verification Host to be specified
...in addition to "host" in config.json..
This commit is contained in:
parent
95e4d1f061
commit
3937d44ee8
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue