Skip to content
Snippets Groups Projects
Commit 80b7c26a authored by Dominik Seeger's avatar Dominik Seeger :ghost:
Browse files

Resolve "Logout shortly after logging in"

parent 9466d729
No related branches found
No related tags found
No related merge requests found
Pipeline #92855 passed
......@@ -72,12 +72,17 @@ export default {
submit () {
this.loading = true
Auth.getJWT(this.credentials).then(() => {
Auth.getUser().then(() => {
this.$router.push({ name: 'home' })
})
Auth.getJWTTimeDelta()
return Promise.all([
Auth.getUser(),
Auth.getJWTTimeDelta()
])
}).then(() => {
this.$router.push({ name: 'home' })
this.loading = false
}).catch(() => { this.loading = false })
}).catch((er) => {
Auth.SET_MESSAGE("Login failed. Please try again.")
this.loading = false
})
},
registered (credentials) {
this.registerDialog = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment