Fix authorization.
This commit is contained in:
@ -34,9 +34,10 @@ angular.module('accountant', [
|
||||
|
||||
if(token) {
|
||||
var token_type = $storage.get('token_type');
|
||||
config.headers.Authorization = authorization;
|
||||
var authorization = token_type + ' ' + token;
|
||||
config.headers.Authorization = authorization;
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user