Go to friends timeline on login.

feature/status-removal
Roger Braun 8 years ago
parent 500b704c0f
commit a7ce51b4b0

@ -7,7 +7,9 @@ const LoginForm = {
},
methods: {
submit () {
this.$store.dispatch('loginUser', this.user)
this.$store.dispatch('loginUser', this.user).then(() => {
this.$router.push('/main/friends')
})
}
}
}

@ -21,7 +21,7 @@ const users = {
loginUser (store, userCredentials) {
const commit = store.commit
commit('beginLogin')
apiService.verifyCredentials(userCredentials)
return apiService.verifyCredentials(userCredentials)
.then((response) => {
if (response.ok) {
response.json()

Loading…
Cancel
Save