2,605 questions
0 votes
1 answer
379 views
Symfony 6 security user lost after redirect
I have Symfony 6.4 app and wanted to add user login for my new entity SuperUser. I've followed the documentation exactly, and the logging in is successful, but when I visit another page or get ...
0 votes
1 answer
200 views
The password is erased as another listener already used this badge
During an update from Symfony 4 to 6, I ran into a problem with the security component. When trying to access a route after I successfully log in via the HTTP auth under this firewall: security.yaml: ...
0 votes
1 answer
88 views
How to refresh the fos_user token every time a user submits a reset request?
Every time a user sends a reset resetting/request with email or username I need to refresh the token how to refresh the token I need to generate a new token (which sends to email). What configuration ...
3 votes
0 answers
1k views
Migrate Symfony from FOSUserBundle to Security
I have an old project written in Symfony 3.4 where I used FOSUserBundle for authenticating users. Recently I started to upgrade the project to Symfony 6 - quite a long journey where I actually created ...
0 votes
0 answers
62 views
Symfony 2 CSRF issue
I'm having a trouble with a legacy Symfony application: The application has been deployed 2 years ago. The application was working perfectly until two days ago. Now, every user that try log in get ...
0 votes
1 answer
314 views
Symfony 3.4 - Dependency Injection for ResettingController of FosUserBundle work only in dev env
My initial problem is this error: Too few arguments to function FOS\UserBundle\Controller\ResettingController::__construct(), 0 passed in /var/www/project/vendor/symfony/symfony/src/Symfony/Component/...
0 votes
1 answer
97 views
Symfony 4/JMS/FOSUser: Can't serialize datas from FOS\UserBundle
There is A LOT of similar quesions, some of them have validated answers, but here I am and none of them worked. My use case is pretty simple: My users App\Client\common\Entities\User belong to a ...
1 vote
0 answers
514 views
symfony 4.4 sonata admin and sonata user compatible issue
I tried to install symfony 4.4 instead. after the installation, I tried to install sonata user bundle and got this error: The child node "db_driver" at path "fos_user" must be ...
0 votes
1 answer
109 views
FOSUserBundle - Update email address and email canonical not working
After creating a user I want to make functionality to update email/ canonical email of the other accounts. I'm trying to update using: $user = $this->fosUserManager->findUserBy(["id" =&...
0 votes
1 answer
1k views
Argument #1 ($userProvider) must be of type ... UserProviderInterface
I have installed the Sonata User Bundle using the instructions. The process of loading user fixtures and clearing the cache work fine, but once I try to access an area requiring authentication in the ...
-1 votes
2 answers
2k views
Cannot serialize Symfony\Component\Cache\Adapter\AbstractAdapter
I removed FosUserBundle and develop my own User module. Since then i have this error that popsup when i try to serialize the session. $session->set($this->sessionKey, serialize($token)); EDIT 1 ...
-1 votes
1 answer
166 views
security.context service is missing in a Symfony3 app
I inherited a Symfony 3 application that appears to have a good, working installation of FOSUserBundle. However, when I try to inject @security.context into a service in order to retrieve the logged-...
0 votes
0 answers
101 views
Return custom error message when user not enabled
I have been creating a web application using Symfony(FosUsersBundle) & Angular, when the user types false login informations, even when the user not enabled I always the the same response: {code: ...
0 votes
0 answers
160 views
Getting anon when trying to get loogged in user [Symfony 3.4] FOSUserBundke+Lexik+FosRest
I'm new in symfony and tried to implement a auth service that allows me to register+login+getting the logged in user for my angular app. the login worked like a charm, got the token and connected ...
1 vote
2 answers
1k views
Symfony 4: ROLE_USER doesn't inherit IS_AUTHENTICATED_FULLY and Voter throws AccessDeniedException
I'm working on a legacy project with a lot of ancient staffs. There're huge numbers of actions which are used really rare. Half a year ago we upgraded from Symfony 2.8 to Symfony 4.4. All worked ...