Commit 595b4651 authored by quentin.vrel's avatar quentin.vrel

allow the user to logout

parent 0f5c1aea
...@@ -30,6 +30,7 @@ export default { ...@@ -30,6 +30,7 @@ export default {
}, },
methods: { methods: {
logout: function() { logout: function() {
localStorage.removeItem('user');
this.$router.push('/') this.$router.push('/')
} }
} }
......
Markdown is supported
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