Fix OAuth global variable

Closes #5214
pull/6105/head
Rodrigo Nascimento 9 years ago committed by Gabriel Engel
parent 7f39360ee2
commit e7663cc9f6
  1. 3
      packages/rocketchat-custom-oauth/custom_oauth_client.js

@ -46,7 +46,6 @@ export class CustomOAuth {
}
configureLogin() {
self = this;
const loginWithService = 'loginWith' + s.capitalize(this.name);
Meteor[loginWithService] = (options, callback) => {
@ -57,7 +56,7 @@ export class CustomOAuth {
}
const credentialRequestCompleteCallback = Accounts.oauth.credentialRequestCompleteHandler(callback);
self.requestCredential(options, credentialRequestCompleteCallback);
this.requestCredential(options, credentialRequestCompleteCallback);
};
}

Loading…
Cancel
Save