Skip to content

Commit

Permalink
Merge branch 'fix-change-password' of 'https://github.com/jjmerchante…
Browse files Browse the repository at this point in the history
  • Loading branch information
sduenas committed Apr 12, 2024
2 parents 6c680d6 + 1a06e2b commit fc94f36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions releases/unreleased/change-password-form-fixed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Change password form fixed
category: fixed
author: Jose Javier Merchante <jjmerchante@bitergia.com>
issue: null
notes: >
An unused header in the UI made the attempts
to change the password fail. It tried to guess
the user from an invalid JWT token when multitenancy
was enabled.
2 changes: 0 additions & 2 deletions ui/src/views/ChangePassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ export default {
},
headers() {
const csrftoken = Cookies.get("csrftoken");
const authtoken = Cookies.get("sh_authtoken");
const headers = {
"X-CSRFToken": csrftoken,
Authorization: `JWT ${authtoken}`,
};
return headers;
Expand Down

0 comments on commit fc94f36

Please sign in to comment.