Ignore:
Timestamp:
03/08/14 11:41:10 (11 years ago)
Author:
hendrikvanantwerpen
Message:

Update node modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/node_modules/passport/lib/passport/index.js

    r484 r489  
    236236 */
    237237Passport.prototype.authorize = function(strategy, options, callback) {
     238  var fwAuthorize = this._framework && (this._framework.authorize || this._framework.authenticate);
     239
    238240  options = options || {};
    239241  options.assignProperty = 'account';
     242
     243  if (fwAuthorize) {
     244    return fwAuthorize(strategy, options, callback).bind(this);
     245  }
    240246 
    241247  return authenticate(strategy, options, callback).bind(this);
Note: See TracChangeset for help on using the changeset viewer.