Skip to content

Commit

Permalink
Update unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrylinooo committed Aug 27, 2020
1 parent b74a3d4 commit e0668e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Firewall/Panel/User.php
Expand Up @@ -151,11 +151,13 @@ public function logout(): ResponseInterface
unset_superglobal('shieldon_panel_lang', 'session');
}

// @codeCoverageIgnoreStart
if ($this->kernel->psr7) {
unset_superglobal('_shieldon', 'cookie');
} else {
setcookie('_shieldon', '', time() - 3600, '/');
}
// // @codeCoverageIgnoreEnd

return $response->withHeader('Location', $this->url('user/login'));
}
Expand Down

0 comments on commit e0668e7

Please sign in to comment.