@@ -16,8 +16,8 @@ |
||
16 | 16 | 'password' => $request->json('password'), |
17 | 17 | ]; |
18 | 18 | |
19 | - if (! $token = JWTAuth::attempt($credentials)) { |
|
20 | - return response()->json(['error' => 'invalid_credentials'], 401); |
|
19 | + if (!$token = JWTAuth::attempt($credentials)) { |
|
20 | + return response()->json([ 'error' => 'invalid_credentials' ], 401); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | return response()->json(compact('token')); |