mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 18:01:37 +03:00
Replace {} with null to be compliant with newer specs. While older also accepted null for the auth part of the registration request object
Took 18 minutes
This commit is contained in:
parent
da8939107a
commit
e3d1cf8d84
2 changed files with 3 additions and 3 deletions
|
@ -243,7 +243,7 @@ export default createReactClass({
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
await this._makeRegisterRequest({});
|
await this._makeRegisterRequest(null);
|
||||||
// This should never succeed since we specified an empty
|
// This should never succeed since we specified an empty
|
||||||
// auth object.
|
// auth object.
|
||||||
console.log("Expecting 401 from register request but got success!");
|
console.log("Expecting 401 from register request but got success!");
|
||||||
|
|
|
@ -650,7 +650,7 @@ export class SSOAuthEntry extends React.Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
onConfirmClick = () => {
|
onConfirmClick = () => {
|
||||||
this.props.submitAuthDict({});
|
this.props.submitAuthDict(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -740,7 +740,7 @@ export const FallbackAuthEntry = createReactClass({
|
||||||
event.data === "authDone" &&
|
event.data === "authDone" &&
|
||||||
event.origin === this.props.matrixClient.getHomeserverUrl()
|
event.origin === this.props.matrixClient.getHomeserverUrl()
|
||||||
) {
|
) {
|
||||||
this.props.submitAuthDict({});
|
this.props.submitAuthDict(null);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue