Skip to content

Commit

Permalink
change response when no user found
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Sickert <[email protected]>
  • Loading branch information
Lapotor committed Dec 10, 2023
1 parent 741df46 commit 0e70568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function login(Request $request)
public function logout(Request $request)
{
if (!$request->user()) {
return new ApiSuccessResponse('User logged out successfully');
return new ApiSuccessResponse('No user found');
}

$request->user()->currentAccessToken()->delete();
Expand Down

0 comments on commit 0e70568

Please sign in to comment.