This commit is contained in:
Matthew Dillon 2015-01-28 12:28:46 -09:00
parent 3efc449e94
commit 2d21a158fe
3 changed files with 4 additions and 4 deletions

View file

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