Merge pull request #4347 from MTRNord/fix-register-auth-with-new-spec

Make auth argument in the register request compliant with r0.6.0
pull/21833/head
J. Ryan Stinnett 2020-06-02 10:14:09 +01:00 committed by GitHub
commit 0717c7749e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -247,9 +247,8 @@ export default createReactClass({
// do SSO instead. If we've already started the UI Auth process though, we don't
// need to.
if (!this.state.doingUIAuth) {
await this._makeRegisterRequest({});
// This should never succeed since we specified an empty
// auth object.
await this._makeRegisterRequest(null);
// This should never succeed since we specified no auth object.
console.log("Expecting 401 from register request but got success!");
}
} catch (e) {