Skip to content

Commit

Permalink
add middleware in
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Apr 11, 2024
1 parent 102eecb commit 256e7e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/Auth/FireflyAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ trait FireflyAuth
{
use AuthenticatesUsers;

public function __construct() {
$this->middleware('guest')->except('logout');
}
public function logout(Request $request): RedirectResponse
{
auth()->logout();
Expand Down

0 comments on commit 256e7e9

Please sign in to comment.