- Manage multiple login, in different browsers... Multi Token...

- visualization of the Connection State (Online, Offline) using fetch.
This commit is contained in:
Paolo Arena
2019-02-09 18:04:49 +01:00
parent b65d0a2386
commit 4d5cea1c17
20 changed files with 393 additions and 209 deletions

View File

@@ -39,6 +39,11 @@ export default class Signin extends Vue {
created() {
this.$v.$reset()
if (UserStore.state.resStatus === serv_constants.RIS_CODE__HTTP_FORBIDDEN_INVALID_TOKEN) {
this.showNotif(this.$t('fetch.error_doppiologin'))
}
// this.$myconfig.socialLogin.facebook = true
// console.log('PROVA fb:', this.$myconfig.socialLogin.facebook)
}
@@ -125,18 +130,25 @@ export default class Signin extends Vue {
console.log('riscode=', riscode)
if (riscode === rescodes.OK) {
router.push('/signin')
globalroutines(this, 'loadapp', '')
}
return riscode
}).then((riscode) => {
globalroutines(this, 'loadapp', '')
return riscode
})
.then((riscode) => {
if (riscode === rescodes.OK) {
GlobalStore.actions.createPushSubscription()
}
this.checkErrors(riscode)
this.$q.loading.hide()
}).catch(error => {
console.log('ERROR = ' + error)
})
.catch(error => {
console.log('ERROR = ' + error)
this.checkErrors(error)
this.$q.loading.hide()
})
this.checkErrors(error)
this.$q.loading.hide()
})
}
}