Symfony 5 basic authentication login problem

I’m learning Symfony 5 and I’m stuck with basic authentication.
Following this tutorial.

I tried to insert manually a user in my users table with password encoding with this command:

php bin/console security:encode-password

But when I try to log in, I can’t.
So I created a register form by using

php bin/console make:registration-form

The thing is, when I register with this form, it logs me in automatically. But when I log out and try to login again (with the username and password that I persisted in registration), it doesn’t work anymore.
Thanks for reading.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *