From b64d8969b53d7441cd6c5b63123b2e5f676273be Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 26 Feb 2021 17:47:02 +0100 Subject: [PATCH] clear console log, regprozess runnig --- frontend/src/store/store.js | 4 ++-- frontend/src/views/Pages/Register.vue | 15 ++++----------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index 21ac4635e..f6e7898cc 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -61,8 +61,8 @@ export const store = new Vuex.Store({ } }, createUser: async ({ dispatch }, data) => { - console.log('action: createUser') - console.log('data ', data) + //console.log('action: createUser') + //console.log('data ', data) const result = await loginAPI.create(data.email,data.first_name,data.last_name,data.password) if( result.success ){ // TODO We are not logged in, we need to do that manually. diff --git a/frontend/src/views/Pages/Register.vue b/frontend/src/views/Pages/Register.vue index 384c2bc78..4ad05982c 100755 --- a/frontend/src/views/Pages/Register.vue +++ b/frontend/src/views/Pages/Register.vue @@ -92,10 +92,8 @@
+ - - -
@@ -112,18 +110,13 @@ email: '', password: '', agree: false - }, - modals: false + } } }, - created() { - console.log("this.modals =>", this.modals) - }, methods: { onSubmit() { - console.log("this.modals =>", this.modals) - //this.$store.dispatch('createUser', {"email":this.model.email, "first_name":this.model.firstname, "last_name":this.model.lastname , "emailType": 2, "password":this.model.password}) - this.$notify({type: 'danger', message: 'Danger Notification'}) + // console.log("this.modals =>", this.modals) + this.$store.dispatch('createUser', {"email":this.model.email, "first_name":this.model.firstname, "last_name":this.model.lastname , "emailType": 2, "password":this.model.password}) this.model.email = "" this.model.firstname = "" this.model.lastname = ""