Closed jon-ht closed 4 years ago
Hey
If you look at \App\Infrastructure\User\Auth\Guard\LoginAuthenticator::getUser
only InvalidCredentialsException
is catched and throwed again as AuthenticationException
.
Incomming data is validate by Assertion and when fail they throws InvalidArgumentException
which is not catched.
Good catch, we need fix this problem.
Strange, this is covered here and there's a test for this use case: https://github.com/jorge07/symfony-5-es-cqrs-boilerplate/blob/master/tests/UI/Http/Web/Controller/SignUpControllerTest.php#L50
I tried to reproduce it locally but I can't get this JSON response...
Is this a simple clone? No edits?
you looked at sign-up
but problem is with sign-in
😄
🤦 That's why I shouldn't do stuff at 2AM
Close as fixed in #149 thanks for report it!
Thanks for the quick fix! :)
When I try to log in with an invalid email (like
foo
), I'm getting an error"Not a valid email"
but the response is in JSONDo you have any idea why the
AuthenticationException
isn't caught by firewall or isn't a basic HttpResponse ?Edit: I'm trying to log via
http://127.0.0.1/sign-in
in the web form