Complete SSO (user model, error cases, tests, views) & Add github provider

This commit is contained in:
Bubka
2023-12-09 17:22:24 +01:00
parent 717bef16f7
commit 9ff35195f0
28 changed files with 488 additions and 79 deletions

View File

@ -21,11 +21,17 @@
}
})
onMounted(() => {
if (route.query.err) {
errorHandler.message = trans('errors.' + route.query.err)
}
})
/**
* Exits the error view
*/
function exit() {
window.history.length > 1 && route.name !== '404' && route.name !== 'notFound'
window.history.length > 1 && route.name !== '404' && route.name !== 'notFound' && !route.query.err
? router.go(-1)
: router.push({ name: 'accounts' })
}