mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Fix PAT & Webauthn registration - Fixes #227
This commit is contained in:
6
resources/js/routes.js
vendored
6
resources/js/routes.js
vendored
@ -88,13 +88,13 @@ router.beforeEach((to, from, next) => {
|
||||
else if (to.name.startsWith('settings.')) {
|
||||
if (to.params.returnTo == undefined) {
|
||||
if (from.params.returnTo) {
|
||||
next({name: to.name, params: { returnTo: from.params.returnTo }})
|
||||
next({name: to.name, params: { ...to.params, returnTo: from.params.returnTo }})
|
||||
}
|
||||
else if (from.name) {
|
||||
next({name: to.name, params: { returnTo: from.path }})
|
||||
next({name: to.name, params: { ...to.params, returnTo: from.path }})
|
||||
}
|
||||
else {
|
||||
next({name: to.name, params: { returnTo: '/accounts' }})
|
||||
next({name: to.name, params: { ...to.params, returnTo: '/accounts' }})
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user