Remove unhelpful log lines

This commit is contained in:
Kegan Dougal 2015-11-20 10:11:51 +00:00
parent 23467de016
commit cad3afc7a4

View file

@ -111,22 +111,18 @@ class Register extends Signup {
this._hsUrl,
this._isUrl
);
console.log("Starting registration process (form submission)");
return this._tryRegister();
}
_tryRegister(authDict) {
console.log("Trying to register with auth dict: %s", JSON.stringify(authDict));
var self = this;
return MatrixClientPeg.get().register(
this.username, this.password, this.params.sessionId, authDict
).then(function(result) {
console.log("Got a final response");
self.credentials = result;
self.setStep("COMPLETE");
return result; // contains the credentials
}, function(error) {
console.error(error);
if (error.httpStatus === 401 && error.data && error.data.flows) {
self.data = error.data || {};
var flow = self.chooseFlow(error.data.flows);