Fix authorization.

This commit is contained in:
Alexis Lahouze 2016-02-08 00:27:15 +01:00
parent dcce124a4d
commit 071e9c96f4
1 changed files with 2 additions and 1 deletions

View File

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