diff --git a/app/authenticators/custom.js b/app/authenticators/custom.js index 73ce81b..bf5f48d 100644 --- a/app/authenticators/custom.js +++ b/app/authenticators/custom.js @@ -27,7 +27,7 @@ export default Base.extend({ Ember.run(function() { resolve({ token: response.token }); }); - }, function(xhr, status, error) { + }, function(xhr) { var response = JSON.parse(xhr.responseText); Ember.run(function() { reject(response.error); @@ -36,7 +36,7 @@ export default Base.extend({ }); }, - invalidate: function(data) { + invalidate: function() { var _this = this; return new Ember.RSVP.Promise(function(resolve) { Ember.$.ajax({ url: _this.tokenEndpoint, type: 'DELETE' }).always(function() { diff --git a/app/authorizers/custom.js b/app/authorizers/custom.js index 897b82e..c2c349a 100644 --- a/app/authorizers/custom.js +++ b/app/authorizers/custom.js @@ -2,7 +2,7 @@ import Ember from 'ember'; import Base from 'simple-auth/authorizers/base'; export default Base.extend({ - authorize: function(jqXHR, requestOptions) { + authorize: function(jqXHR) { if (this.get('session.isAuthenticated') && !Ember.isEmpty(this.get('session.token'))) { jqXHR.setRequestHeader('Authorization', 'Bearer ' + this.get('session.token')); } diff --git a/app/routes/login.js b/app/routes/login.js index e772f01..003ca95 100644 --- a/app/routes/login.js +++ b/app/routes/login.js @@ -1,7 +1,7 @@ import Ember from 'ember'; export default Ember.Route.extend({ - setupController: function(controller, model) { + setupController: function(controller) { controller.set('errorMessage', null); } });