mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-22 21:30:56 +01: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)
|
||||
|
||||
if (localStorage.getItem('jwt') != null){
|
||||
this.$router.go('/');
|
||||
this.$router.push({ name: 'accounts', params: { toRefresh: true } })
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
@ -37,7 +37,7 @@
|
||||
localStorage.setItem('jwt',response.data.message.token)
|
||||
|
||||
if (localStorage.getItem('jwt') != null){
|
||||
this.$router.go('/');
|
||||
this.$router.push({ name: 'accounts', params: { toRefresh: true } })
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
Loading…
Reference in New Issue
Block a user