mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Clean logout mixin and session middleware
This commit is contained in:
5
resources/js/mixins.js
vendored
5
resources/js/mixins.js
vendored
@ -13,11 +13,8 @@ Vue.mixin({
|
||||
async appLogout(evt) {
|
||||
|
||||
await this.axios.get('/user/logout')
|
||||
|
||||
this.$storage.clear()
|
||||
delete this.axios.defaults.headers.common['Authorization']
|
||||
|
||||
this.$router.push({ name: 'login' })
|
||||
location.reload()
|
||||
},
|
||||
|
||||
exitSettings: function(event) {
|
||||
|
Reference in New Issue
Block a user