You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Merge pull request #4347 from MTRNord/fix-register-auth-with-new-spec
Make auth argument in the register request compliant with r0.6.0
This commit is contained in:
@@ -247,9 +247,8 @@ export default createReactClass({
|
|||||||
// do SSO instead. If we've already started the UI Auth process though, we don't
|
// do SSO instead. If we've already started the UI Auth process though, we don't
|
||||||
// need to.
|
// need to.
|
||||||
if (!this.state.doingUIAuth) {
|
if (!this.state.doingUIAuth) {
|
||||||
await this._makeRegisterRequest({});
|
await this._makeRegisterRequest(null);
|
||||||
// This should never succeed since we specified an empty
|
// This should never succeed since we specified no auth object.
|
||||||
// auth object.
|
|
||||||
console.log("Expecting 401 from register request but got success!");
|
console.log("Expecting 401 from register request but got success!");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user