1
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
axios.post('login', this.user)
|
axios.post('login', this.user)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
localStorage.setItem("username", this.user.name);
|
localStorage.setItem("username", this.user.name);
|
||||||
|
localStorage.setItem("token", data.token);
|
||||||
location.href = "/admin";
|
location.href = "/admin";
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user