Fix reference to app
See https://github.com/strongloop/loopback/issues/452
This commit is contained in:
parent
68278b218b
commit
0e8a69015a
|
@ -289,7 +289,7 @@ User.prototype.verify = function (options, fn) {
|
|||
options.user = this;
|
||||
options.protocol = options.protocol || 'http';
|
||||
|
||||
var app = this.app;
|
||||
var app = userModel.app;
|
||||
options.host = options.host || (app && app.get('host')) || 'localhost';
|
||||
options.port = options.port || (app && app.get('port')) || 3000;
|
||||
options.restApiRoot = options.restApiRoot || (app && app.get('restApiRoot')) || '/api';
|
||||
|
|
Loading…
Reference in New Issue