mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
clear console log, regprozess runnig
This commit is contained in:
parent
19206e5e53
commit
b64d8969b5
@ -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.
|
||||
|
||||
@ -92,10 +92,8 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
|
||||
<!--Notice modal-->
|
||||
|
||||
<notifications></notifications>
|
||||
</div>
|
||||
</b-container>
|
||||
</div>
|
||||
@ -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 = ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user