Skip to content

Commit

Permalink
Wrong user authentication token was set
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneTR committed Oct 14, 2024
1 parent 4ff67cc commit 67b1da2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/js/helpers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ async function makeAPICall(path, values=null, force_authentication_token=null) {
options.headers['X-Authentication'] = force_authentication_token;
} else {
const authentication_token = localStorage.getItem('authentication_token');
if (force_authentication_token != null && force_authentication_token != '') {
options.headers['X-Authentication'] = force_authentication_token;
if (authentication_token != null && authentication_token != '') {
options.headers['X-Authentication'] = authentication_token;
}
}

Expand Down

0 comments on commit 67b1da2

Please sign in to comment.