Skip to content

Commit c133ad5

Browse files
authored
Merge pull request #42 from Kharhamel/InvalidUserPasswordException
updated InvalidUserPasswordException
2 parents d24612e + 1ba36fc commit c133ad5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Controller/GraphQL/InvalidUserPasswordException.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33

44
namespace TheCodingMachine\Graphqlite\Bundle\Controller\GraphQL;
55

6-
76
use Exception;
8-
use TheCodingMachine\GraphQLite\GraphQLRuntimeException as GraphQLException;
7+
use TheCodingMachine\GraphQLite\Exceptions\GraphQLException;
98

109
class InvalidUserPasswordException extends GraphQLException
1110
{
1211
public static function create(Exception $previous = null)
1312
{
14-
return new self('The provided user / password is incorrect.', 401, $previous);
13+
return new self('The provided user / password is incorrect.', 401, $previous, 'Security');
1514
}
16-
}
15+
}

0 commit comments

Comments
 (0)