Skip to content

Commit

Permalink
Fix change password form
Browse files Browse the repository at this point in the history
This commit removes an unused header in the UI that was causing
attempts to guess the user by an invalid JWT token when
multitenancy was enabled.

Signed-off-by: Jose Javier Merchante <jjmerchante@bitergia.com>
  • Loading branch information
jjmerchante committed Apr 12, 2024
1 parent 6c680d6 commit 1a06e2b
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 1a06e2b

Please sign in to comment.