Clean logout mixin and session middleware

This commit is contained in:
Bubka 2022-05-13 16:44:01 +02:00
parent 2d38980890
commit 233c61d659
2 changed files with 2 additions and 5 deletions

View File

@ -44,7 +44,7 @@ class Kernel extends HttpKernel
'behind-auth' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\StartSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\App\Http\Middleware\Authenticate::class,

View File

@ -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) {