Skip to content

Commit f3b6cec

Browse files
authored
Update AuthenticationController.php
1 parent d32909d commit f3b6cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/AuthenticationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function login(UserLoginData $request): JsonResponse
8787
*/
8888
public function logout(UserLogoutData $request): JsonResponse
8989
{
90-
if (!Auth::attempt($request->only('email', 'password'))) {
90+
if (!Auth::user()) {
9191
return JsonResponseBuilder::error(401, $this->getMessage('credentials_incorrect'));
9292
}
9393

0 commit comments

Comments
 (0)