We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32909d commit f3b6cecCopy full SHA for f3b6cec
src/Controllers/AuthenticationController.php
@@ -87,7 +87,7 @@ public function login(UserLoginData $request): JsonResponse
87
*/
88
public function logout(UserLogoutData $request): JsonResponse
89
{
90
- if (!Auth::attempt($request->only('email', 'password'))) {
+ if (!Auth::user()) {
91
return JsonResponseBuilder::error(401, $this->getMessage('credentials_incorrect'));
92
}
93
0 commit comments