fosuserbundle Questions

5

Solved

I am using Symfony2.0 and FOSUserBundle, and would like to disable the csrf token on my login form. I have disabled the csrf protection globally on my website in my config.yml: framework: csrf_p...
Levkas asked 7/3, 2013 at 11:13

2

Solved

I'm starting with journey with Symfony. At this I trying to secure my auth routes (I'm using FOSUserBundle) so I do: access_control: - { path: ^/logowanie$, role: IS_AUTHENTICATED_ANONYMOUSLY } ...
Ow asked 23/7, 2017 at 16:52

3

Solved

I use the sonata-admin bundle. I have the relationship with the user (FOSUserBundle) in the PageEntity. I want to save the current user which create or change a page. My guess is get the user obj...
Ube asked 27/2, 2014 at 13:10

2

Solved

I'm trying to create a controller where I can edit the roles of a user (just that, nothing else) and I'm king of stuck. I've created a form type: public function buildForm(FormBuilderInterface $b...
Equimolecular asked 4/11, 2015 at 14:25

3

Solved

I try to create an Admin User with FOsUserBundle from command windows with the following command: php app/console fos:user:create In my project the Admin User extends other user with mandatory p...
Easygoing asked 13/2, 2014 at 16:59

3

I've got problem with fosuserbundle to redirect user to the referer after login success app/config/security.yml security: encoders: FOS\UserBundle\Model\UserInterface: sha512 role_hierarchy: ...
Amyotonia asked 2/1, 2014 at 8:41

2

Solved

I've seen many people trying to use FOSUserBundle. I've been struggling with it for 6 hours now. Just to be able to make a custom user registration form. The basic documentation is 6 pages l...
Bottleneck asked 28/9, 2013 at 7:53

5

Solved

I am using FOSUserBundle for managing my users. In order to register user, I reused the form of the bundle which meets my needs. Nevertheless, I needed to set some attributes of my fields. This is ...
Quickman asked 21/7, 2013 at 6:35

1

Fresh installation of symfony 4.4, then symfony flex and some common recipes, then I was trying to setup fos userbundle, I have this issue I cannot get around. Argument 3 passed to FOS\UserBundle\D...
Baleful asked 3/10, 2020 at 17:44

2

In a Symfony2 application using FOSUserBundle for user management, the user table has been filled through an import script from a csv file and the password generated from a combination of data. I ...
Urethra asked 3/12, 2014 at 19:4

3

Solved

I was wondering if there is a way that i can initialize the property owner with an entity User of FOSUserBundle so that it contains the user who created the Post I want to do this inside the const...
Menderes asked 3/2, 2017 at 23:11

3

Solved

I have this error when I submit the connexion form (I use FOSUserBundle latest version) : No encoder has been configured for account "MyApp\UtilisateurBundle\Entity\Utilisateur here is my entit...
Secondclass asked 28/11, 2012 at 9:50

2

Solved

I am using Symfony2 and FOSUserBundle. Just as detailed in the documentation, I have overridden and created a "name" property in the User entity. I do all necessary and finally get that field to ...
Seibel asked 8/8, 2012 at 15:58

3

Solved

So, the above error has suddenly started happening, after I've been using FOSUserBundle for several Symfony projects. I've tried including the templating service (twice now) and it seems like it's...
Taffrail asked 4/12, 2017 at 20:44

5

Solved

Say for example I grant a new role to the currently authenticated user in a controller, like so: $em = $this->getDoctrine()->getManager(); $loggedInUser = $this->get('security.context')-&...
Precipitant asked 31/10, 2013 at 18:14

4

Solved

I am integrating FOSUserBundle in my application and I am trying to run php bin/console doctrine:migration:diff after following the recommended set-up. I am systematically getting a: In ArrayNode...
Niello asked 25/1, 2018 at 15:25

2

Solved

I enabled the Translator service in my config.yml, cleared cache and installed assets using the command line interface. My login page still says "security.login.submit". I am using a custom templ...
Honorific asked 11/1, 2014 at 23:17

5

Solved

I'm trying to create a new User Admin from a fixture. I'm using FOSUserBundle and Symfony2. $userManager = $this->container->get('fos_user.user_manager'); //$userAdmin = $userManager->c...
Intussusception asked 4/8, 2012 at 18:35

2

Solved

I have a custom registration form type defined like this: .... public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder ->...
Staffan asked 21/6, 2013 at 7:39

4

Using latest Symfony and FOSUserbundle, after successfully registering a new user, the user is automatically logged in. I want to prevent this. My reason is that only a special user should be able ...
Baseline asked 21/1, 2016 at 14:35

5

Solved

I want to redirect the user to another form just after registration, before he could access to anything on my website (like in https://github.com/FriendsOfSymfony/FOSUserBundle/issues/387). So I c...
Peri asked 7/5, 2013 at 19:45

2

I have a problem with installing FOS user bundle. I tried to search it everywhere, but probably I'm too dumb and can't find it. I've created an entity called Admin and tried to run doctrine:schema...
Fetiparous asked 7/2, 2017 at 17:46

4

Solved

I am using Symfony 2.1 RC1 and the FOSUserbundle on a Windows server running PHP 5.3.13. I have followed the instructions here but Doctrine doesn't create fields in the database for the properties...
Droopy asked 21/8, 2012 at 15:59

7

Solved

In my project, I allow only one user to manage the content of the website. This user will be added using the command line at first. Now, I want to get the registration action inaccessible and I do...
Natalia asked 29/6, 2015 at 0:37

5

I'm working on a symfony application using FOSUserBundle. I want to have a dropdown login form in the menubar if i am not authenticated, which have a complete different style that the one under /lo...
Cornerstone asked 8/12, 2013 at 14:8

© 2022 - 2024 — McMap. All rights reserved.