Skip to content

Commit

Permalink
メンテナンストークンにSecure属性を設定する
Browse files Browse the repository at this point in the history
  • Loading branch information
kentanakayrglm committed Jun 14, 2022
1 parent f3e2a56 commit 42235e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eccube/EventListener/MaintenanceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public function onResponse(ResponseEvent $event)

$user = $this->requestContext->getCurrentUser();
if ($user instanceof Entity\Member && $this->requestContext->isAdmin()) {
$cookie = new Cookie(
$cookie = (new Cookie(
SystemService::MAINTENANCE_TOKEN_KEY,
$this->systemService->getMaintenanceToken()
);
))->withSecure(true);
$response->headers->setCookie($cookie);
}
}
Expand Down

0 comments on commit 42235e0

Please sign in to comment.