@@ -15,8 +15,6 @@ |
||
| 15 | 15 | use GraphQL\Type\Definition\Type; |
| 16 | 16 | use GraphQL\Type\Definition\ObjectType; |
| 17 | 17 | use App\GraphQL\Serializers\UserSerializer; |
| 18 | -use Illuminate\Contracts\Auth\Authenticatable; |
|
| 19 | -use Illuminate\Contracts\Validation\Validator; |
|
| 20 | 18 | use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; |
| 21 | 19 | |
| 22 | 20 | /** |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * For the full copyright and license information, please view the LICENSE |
| 5 | 5 | * file that was distributed with this source code. |
| 6 | 6 | */ |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace App\GraphQL\Mutations; |
| 10 | 10 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | $user = $this->tokenAuth->attemptFromEmailAndPassword($email, $password); |
| 105 | 105 | |
| 106 | - if (! $user) { |
|
| 106 | + if (!$user) { |
|
| 107 | 107 | throw new AccessDeniedHttpException('User password are not correct'); |
| 108 | 108 | } |
| 109 | 109 | |