Skip to content

Commit 2309b0b

Browse files
KosticDusan4Dwouterj
authored andcommitted
Correcting bugs for provider and JSON login
On lines 501 and 502 I propose this change, because it confused me so much which provider to use, and in the case that you are explaining there you should use earlier configured app_user_provider, not users_in_memory. On line 1043 I had a problem that $user is always null until I deleted the "?User" from parameters. I think that PHP gets confused here with the way it is written. And to say that now with that part removed everything works fine. Thanks in advance and I hope that I contributed even a little as this is.
1 parent c03ef32 commit 2309b0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ will be able to authenticate (e.g. login form, API token, etc).
498498
security: false
499499
main:
500500
lazy: true
501-
provider: users_in_memory
501+
# provider that you set earlier inside providers
502+
provider: app_user_provider
502503
503504
# activate different ways to authenticate
504505
# https://symfony.com/doc/current/security.html#firewalls-authentication

0 commit comments

Comments
 (0)