Skip to content

Commit

Permalink
add patch to remove authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
odelcroi committed Nov 22, 2022
1 parent 290e43c commit bb0d0fc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,11 @@
"src/components/views/rooms/EventTile.tsx",
"res/css/views/elements/_TooltipButton.pcss"
]
},
"remove-authorization-header-in-reset-password": {
"package": "matrix-react-sdk",
"files": [
"src/PasswordReset.ts"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/node_modules/matrix-react-sdk/src/PasswordReset.ts b/node_modules/matrix-react-sdk/src/PasswordReset.ts
index df812ba..a92e1aa 100644
--- a/node_modules/matrix-react-sdk/src/PasswordReset.ts
+++ b/node_modules/matrix-react-sdk/src/PasswordReset.ts
@@ -42,6 +42,11 @@ export default class PasswordReset {
this.client = createClient({
baseUrl: homeserverUrl,
idBaseUrl: identityUrl,
+ //:tchap: specify useAuthorization header to false to avoid this bug :
+ //https://github.com/tchapgouv/tchap-web-v4/issues/311
+ //very strange this regression
+ //if we do not set it to false, a Authorization Bearer token undefined is sent to the server
+ useAuthorizationHeader: false
});
this.clientSecret = this.client.generateClientSecret();
}

0 comments on commit bb0d0fc

Please sign in to comment.