1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-16 06:42:26 +03:00

Merge remote-tracking branch 'origin/fix-register-auth-with-new-spec' into fix-register-auth-with-new-spec

This commit is contained in:
Marcel
2020-04-08 20:55:19 +02:00

View File

@@ -244,8 +244,7 @@ export default createReactClass({
}; };
try { try {
await this._makeRegisterRequest(null); await this._makeRegisterRequest(null);
// This should never succeed since we specified an empty // This should never succeed since we're doing UIA
// 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) {
if (e.httpStatus === 401) { if (e.httpStatus === 401) {