From 071e9c96f4a32562f15f390c6c46238015cd05c1 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Mon, 8 Feb 2016 00:27:15 +0100 Subject: [PATCH] Fix authorization. --- accountant/frontend/static/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index 9985eee..c1492d3 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -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; } };