Skip to content

Commit

Permalink
misc: Clear the code related to the old "flusio" sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
marienfressinaud committed Jun 27, 2024
1 parent cb54aba commit efbbda2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ public function run(\Minz\Request $request): mixed
/** @var ?string */
$session_token = $request->cookie('session_token');

if (!$session_token) {
/** @var ?string */
$session_token = $request->cookie('flusio_session_token');
}

if (
!$session_token &&
auth\CurrentUser::sessionToken() &&
Expand Down Expand Up @@ -117,7 +112,6 @@ public function run(\Minz\Request $request): mixed

$response = \Minz\Response::redirect('login');
$response->removeCookie('session_token');
$response->removeCookie('flusio_session_token');
return $response;
}

Expand Down
1 change: 0 additions & 1 deletion src/controllers/Sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public function delete(Request $request): Response

$response = Response::redirect('home');
$response->removeCookie('session_token');
$response->removeCookie('flusio_session_token');
return $response;
}
}

0 comments on commit efbbda2

Please sign in to comment.