mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Clean logout mixin and session middleware
This commit is contained in:
parent
2d38980890
commit
233c61d659
@ -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,
|
||||
|
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user