Update src/components/structures/auth/Registration.js

Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Marcel 2020-04-08 20:53:05 +02:00 committed by GitHub
parent e3d1cf8d84
commit 9820400680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,8 +244,7 @@ export default createReactClass({
};
try {
await this._makeRegisterRequest(null);
// This should never succeed since we specified an empty
// auth object.
// This should never succeed since we're doing UIA
console.log("Expecting 401 from register request but got success!");
} catch (e) {
if (e.httpStatus === 401) {