Use payload when inserting created account
This commit is contained in:
@@ -79,6 +79,7 @@ export default {
|
||||
}
|
||||
|
||||
this.createNewAccount({ username: this.username, email: this.email, password: this.password })
|
||||
this.emitCancel()
|
||||
},
|
||||
|
||||
checkUsername () {
|
||||
|
||||
+1
-2
@@ -189,8 +189,7 @@ const actions = {
|
||||
})
|
||||
|
||||
if (response.status === 201) {
|
||||
commit('PUSH_NEW_ACCOUNT', account)
|
||||
console.log(response)
|
||||
commit('PUSH_NEW_ACCOUNT', response.data)
|
||||
} else {
|
||||
dispatch('showMessage', {
|
||||
title: 'Failed to create account',
|
||||
|
||||
Reference in New Issue
Block a user