Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects

Resolve "Logout shortly after logging in"

Merged Dominik Seeger requested to merge 146-logout-shortly-after-logging-in into master
1 file
+ 7
5
Compare changes
  • Side-by-side
  • Inline
@@ -72,12 +72,14 @@ 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) => { this.loading = false })
},
registered (credentials) {
this.registerDialog = false
Loading