mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-24 16:09:14 +01:00
Fix token not being saved to storage during login
This commit is contained in:
parent
a029eb48fb
commit
272a2fe6d3
@ -61,6 +61,8 @@
|
||||
password: this.password
|
||||
})
|
||||
.then(response => {
|
||||
localStorage.setItem('user',response.data.message.name)
|
||||
localStorage.setItem('jwt',response.data.message.token)
|
||||
|
||||
if (localStorage.getItem('jwt') != null){
|
||||
this.$router.go('/');
|
||||
|
Loading…
Reference in New Issue
Block a user