Successful registration pushes the user to the character list

This commit is contained in:
Stefan Zermatten
2018-10-11 11:50:19 +02:00
parent 41a25151fc
commit 4ac56a31de

View File

@@ -101,8 +101,12 @@
username: this.username,
password: this.password,
email: this.email,
}, function(error){
this.error = error.reason;
}, error => {
if (error){
this.error = error.reason;
} else {
router.push("characterList");
}
});
}
},