mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-15 08:12:25 +02:00
Complete SSO (user model, error cases, tests, views) & Add github provider
This commit is contained in:
@ -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' })
|
||||
}
|
||||
|
Reference in New Issue
Block a user