Merge branch 'feature/redirect-signup'
This commit is contained in:
commit
8cd12c3b0e
@ -66,6 +66,7 @@
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
this.setToken({token: response.data.token})
|
this.setToken({token: response.data.token})
|
||||||
this.setUser({username: this.form.username})
|
this.setUser({username: this.form.username})
|
||||||
|
this.$router.push('/')
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@ -117,7 +117,10 @@
|
|||||||
email: this.form.email,
|
email: this.form.email,
|
||||||
password: this.form.password
|
password: this.form.password
|
||||||
})
|
})
|
||||||
.then(response => console.log(response.data))
|
.then(response => {
|
||||||
|
console.log(response.data);
|
||||||
|
this.$router.push('/signin')
|
||||||
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
if (error.response && error.response.status === 409)
|
if (error.response && error.response.status === 409)
|
||||||
this.exists = true
|
this.exists = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user