Skip to content

Commit

Permalink
fix(authentication): require some helpers to log out
Browse files Browse the repository at this point in the history
Some helpers are used internally by base authentication.
  • Loading branch information
KennethTrecy committed Jul 21, 2024
1 parent ad4443c commit d367301
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public function customLoginAction(): ResponseInterface {
}

public function customLogoutAction(): ResponseInterface {
helper([ "auth", "setting", "session" ]);

$session = session();
$has_authorization_header = $this->request->hasHeader("Authorization");

Expand Down

0 comments on commit d367301

Please sign in to comment.