Fix authorization.
1 parent
dcce124a4d
commit
071e9c96f4
1 file changed
+2
-1
@@ -34,9 +34,10 @@ angular.module('accountant', [
|
|||||||
|
|
||||||
if(token) {
|
if(token) {
|
||||||
var token_type = $storage.get('token_type');
|
var token_type = $storage.get('token_type');
|
||||||
config.headers.Authorization = authorization;
|
|
||||||
var authorization = token_type + ' ' + token;
|
var authorization = token_type + ' ' + token;
|
||||||
|
config.headers.Authorization = authorization;
|
||||||
}
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user