F
F
fman22019-10-08 23:12:32
symfony
fman2, 2019-10-08 23:12:32

How to properly authenticate a user after registration?

I read the official documentation, but did not understand how to authenticate the user immediately after registration. I already have a saved $user object, just need to authenticate it somehow.
Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2019-10-09
@FanatPHP

It's a great idea to write a question without giving any code.
Depends on Symphony version and your code.
Well, that is, I would not be surprised that there is only a symphony on the outside, and a typical guanocode inside, and the advice from the comments will actually do. On a toaster you can't see that.
for example like this https://symfonycasts.com/screencast/symfony2-ep2/a... or like this
https://stackoverflow.com/questions/9550079/how-to... well, follow the links.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question