Compare commits
2 Commits
191dbfa23a
...
bd7568a159
Author | SHA1 | Date |
---|---|---|
cws | bd7568a159 | |
Chris Sexton | a1d39c3930 |
|
@ -49,9 +49,6 @@
|
||||||
onSubmit(evt) {
|
onSubmit(evt) {
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
this.$store.dispatch('login', {username: this.form.username, password: this.form.password})
|
this.$store.dispatch('login', {username: this.form.username, password: this.form.password})
|
||||||
.catch((err) => {
|
|
||||||
console.log(err)
|
|
||||||
})
|
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$cookies.set('key', this.$store.state.key)
|
this.$cookies.set('key', this.$store.state.key)
|
||||||
if (!this.$route.params.returnTo)
|
if (!this.$route.params.returnTo)
|
||||||
|
|
Loading…
Reference in New Issue