Skip to content
Snippets Groups Projects
Commit c0c6e95d authored by Ahmad Saladin's avatar Ahmad Saladin
Browse files

hotfix login

parent 4388b75a
1 merge request!22hotfix login
...@@ -108,6 +108,7 @@ export default { ...@@ -108,6 +108,7 @@ export default {
password: this.password, password: this.password,
}) })
.then((response) => { .then((response) => {
localStorage.setItem("token", response.data.token)
if (response.data.success) { if (response.data.success) {
this.$router.push({ name: "User" }); this.$router.push({ name: "User" });
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment