Questions tagged [fosuserbundle]

The FOSUserBundle adds support for a database-backed user system in Symfony2. It provides a flexible framework for user management that aims to handle common tasks such as user registration and password retrieval.

The FOSUserBundle adds support for a database-backed user system in Symfony2. It provides a flexible framework for user management that aims to handle common tasks such as user registration and password retrieval.

Features include:

  • Users can be stored via Doctrine ORM, MongoDB/CouchDB ODM or Propel
  • Registration support, with an optional confirmation email
  • Password reset support
  • Unit tested
2611 questions
0
votes
1 answer

Symfony 4.2 override translation bundle doesn't work

Symfony 4.2 documentation : " For example, to override the translations defined in the Resources/translations/FOSUserBundle.es.yml file of the FOSUserBundle, create a/translations/FOSUserBundle.es.yml file. " That's doesn't work for me…
0
votes
1 answer

FOSUserBundle: resetting password page finds user that does not exist

I am using FOSUserBundle with Symfony 3.4 I am trying to reset the user password and this works fine; only problem is that I can put ANY email and the status would be true saying that the email has been sent ?? How is it possible that FOS is finding…
Sam
  • 1,557
  • 3
  • 26
  • 51
0
votes
2 answers

FOSUserBundle customise login process

I am currently using FOSUserBundle in my Symfony 3.4 based project. We have some front-end design changes planned and I want to integrate the login form to the standard page template for non-logged in users to be able to login wherever they are on…
tip2tail
  • 463
  • 1
  • 6
  • 23
0
votes
1 answer

How to create user with fixtures with sonata admin

I started my application in Symfony 4.2 with FOSUserBundle and made a fixture file to create the admin. use FOS\UserBundle\Doctrine\UserManager; ... /** @var UserManager $userManager */ $userManager =…
0
votes
1 answer

Two different user_class for fos_user configuration

I have web site based on Symfony 3.4 and Sonata Admin with SonataNews Bundle, SonataUser bundle etc. Everything works fine. Now my customer wants web shop, and I choose aimeos for symfony. Now the problem is with users. In fos_user I have: …
repincln
  • 2,029
  • 5
  • 24
  • 34
0
votes
0 answers

symfony 4 prodection login fails on "login_check"

I am using symfony and fosuserbundle. my login fails at "login_check". I have tried re writting my security.yaml security: access_denied_url: /login encoders: FOS\UserBundle\Model\UserInterface: bcrypt role_hierarchy: …
Aneesh K
  • 1
  • 1
0
votes
1 answer

Symfony3 onSecurityInteractiveLogin logout and set flash

I port project on symfony2.2 to symfony3.4. I have LoginListener with onSecurityInteractiveLogin event. When user logged, i need to do something check. If check failed user must be logout and show some flash messages. Code below works fine in…
User Pro
  • 193
  • 1
  • 11
0
votes
1 answer

FOSuser Bundle - User can have multiple accounts, how to switch between them

Using Guard Auth, Symfony 3.4, FOSuser Bundle. My registered user, can create subaccount for different tasks. If my user logout, and login to that subaccount (routes from Fuser bundle) All works as expected. Account have needed priveledges, all…
zoore
  • 293
  • 5
  • 13
0
votes
1 answer

Event response with Symfony 4

I'm using FOSUserBundle with Symfony 4. When we are updating an user profile, if all is ok. An event is triggered here. $this->eventDispatcher->dispatch(FOSUserEvents::PROFILE_EDIT_COMPLETED, new FilterUserResponseEvent($user, $request,…
Minirock
  • 628
  • 3
  • 13
  • 28
0
votes
1 answer

Symfony 4 dynamic database connection & FOS User

Using Symfony 4, we are building a multi-customer application where each customer has a dedicated database. Customer databases are created automatically on-demand when new Customer is created. During this process, we create unique extra .env file…
werd
  • 648
  • 4
  • 13
  • 23
0
votes
1 answer

Symfony 4 - FOSUserBundle - Template on custom route

Symfony 4 app using the FOSUserBundle. I have made custom sub routes for the user profile (eg. profile/bookings), and I have added some custom fields to the user entity (firstName and lastName). If I reference {{ user.firstName }} in my twig…
TimothyAURA
  • 1,329
  • 5
  • 21
  • 44
0
votes
1 answer

Symfony 3.4.18 + FosUserBundle 2.0 + LexikJWT

I want to to configure LexikJWT with fosuserbunle 2.0 but i receive with postman this always security: encoders: FOS\UserBundle\Model\UserInterface: bcrypt role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN:…
nasri_thamer
  • 109
  • 1
  • 15
0
votes
0 answers

How to override constructor in Symfony

I want to override an FOS User action named confirmAction. Here below my action ↓ /** * Receive the confirmation token from user email provider, login the user. * * @param Request $request * @param string $token * * @return Response …
0
votes
1 answer

How to make FOS User Bundle login user after email verification?

After entering login details FOS User Bundle sends confirmation email. Link in letter just make account active but not force it to login. How can I force FOSUB to login user on email verification?
Mach
  • 1
0
votes
1 answer

Symfony 3.4 + FOSUserBundle add Error-Message for new custom Field

I have created a new custom field in the UserEntity and therefore an Assert-Validation with a error message. This Message can be displayed with {{ form_errors(form) }} globally but I haven´t found a way to display the error-message linked to the…
1 2 3
99
100