mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-26 23:12:01 +02:00
Fix bad redirects after Register/Login submit
This commit is contained in:
parent
cff545d936
commit
835926760a
@ -43,7 +43,7 @@
|
|||||||
localStorage.setItem('jwt',response.data.message.token)
|
localStorage.setItem('jwt',response.data.message.token)
|
||||||
|
|
||||||
if (localStorage.getItem('jwt') != null){
|
if (localStorage.getItem('jwt') != null){
|
||||||
this.$router.go('/');
|
this.$router.push({ name: 'accounts', params: { toRefresh: true } })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
localStorage.setItem('jwt',response.data.message.token)
|
localStorage.setItem('jwt',response.data.message.token)
|
||||||
|
|
||||||
if (localStorage.getItem('jwt') != null){
|
if (localStorage.getItem('jwt') != null){
|
||||||
this.$router.go('/');
|
this.$router.push({ name: 'accounts', params: { toRefresh: true } })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user