From 4ac56a31de9ccd73a4d228d17cecc351c49d0288 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 11 Oct 2018 11:50:19 +0200 Subject: [PATCH] Successful registration pushes the user to the character list --- app/imports/ui/pages/Register.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/imports/ui/pages/Register.vue b/app/imports/ui/pages/Register.vue index 53f23582..ad636514 100644 --- a/app/imports/ui/pages/Register.vue +++ b/app/imports/ui/pages/Register.vue @@ -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"); + } }); } },