Compare commits

..

No commits in common. "742961e0b8712b7f9fa590312106603e75f0dab7" and "b911a25c573c537551bae234743eaab449c836b1" have entirely different histories.

View file

@ -191,10 +191,7 @@ export default {
this.$store.commit('libraries/setCurrentLibrary', userDefaultLibraryId)
this.$store.commit('user/setUser', user)
// Access token only returned from login, not authorize
if (user.accessToken) {
this.$store.commit('user/setAccessToken', user.accessToken)
}
this.$store.commit('user/setAccessToken', user.accessToken)
this.$store.dispatch('user/loadUserSettings')
},
@ -228,8 +225,6 @@ export default {
this.processing = true
this.$store.commit('user/setAccessToken', token)
return this.$axios
.$post('/api/authorize', null, {
headers: {
@ -245,7 +240,6 @@ export default {
this.showNewAuthSystemAdminMessage = res.user.type === 'admin' || res.user.type === 'root'
return false
}
this.setUser(res)
return true
})