mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-10 18:48:17 +02: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
|
password: this.password
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
localStorage.setItem('user',response.data.message.name)
|
||||||
|
localStorage.setItem('jwt',response.data.message.token)
|
||||||
|
|
||||||
if (localStorage.getItem('jwt') != null){
|
if (localStorage.getItem('jwt') != null){
|
||||||
this.$router.go('/');
|
this.$router.go('/');
|
||||||
|
Loading…
Reference in New Issue
Block a user