Fix reference to app

See https://github.com/strongloop/loopback/issues/452
This commit is contained in:
Raymond Feng 2014-08-07 21:45:18 -07:00
parent 68278b218b
commit 0e8a69015a
1 changed files with 1 additions and 1 deletions

View File

@ -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';