Questions tagged [sonata-user-bundle]

Integrates the `FOS/UserBundle` in the Sonata Admin Project to add some features related to the users.

Integrates the FOS/UserBundle in the Sonata Admin Project and adds some features:

  • AdminBundle: add user and group management
  • EasyExtends: allows to generate Application level model
  • Features: User profile dashboard, user profile menu, Google Authenticator support (optional), …

The roles to be assigned to users are splitted in 2 parts:

  • editable: the roles the current user is allowed to assign to other users

(permission or role MASTER)

  • readonly: the roles assigned to the current user, however the current

user is only allowed to see them

When using ACL, the UserBundle prevents normal user to change settings of super-admin users.

To find more information :

244 questions
3
votes
2 answers

Symfony: Authentication request failed: Invalid CSRF token

I am getting the following error on logging in to a Symfony2 application: [2014-06-27 00:36:22] security.INFO: Authentication request failed: Invalid CSRF token. [] [] Running on: Symfony2 SonataUserBundle Vagrant (using puppet via…
mr_jingles
  • 137
  • 1
  • 9
3
votes
1 answer

Sonata admin overwritten user class

I have extended SonataUserBundle using SonataEasyExtendsBundle and removed some of the fields. The database table is created correctly. The problem is when trying to add an user in the Admin interface (using SonataAdminBundle). I am getting: Please…
Ionut
  • 113
  • 1
  • 10
3
votes
1 answer

Sonata Admin integration with FOSuser

I'm using Symfony 2.1 for a project. i use FOSUser Bundle for managing users & customize it for my application. now i want to use SonataAdmin Bundle for administration usage. it works fine for normal entities (I can do the usual CRUD things) but for…
2
votes
3 answers

Sonata admin-bundle - haven't logout nav bar

I have installed Sonata-admin-bundle 3.x with User-bundle and FOSUserBundle. Mostly all of this stuff is working great but in admin panel the logout button is missing.The logout button show in the footer in DEV environment but not in PROD. Anyone…
2
votes
6 answers

Extending Sonata User Bundle & custom actions

I have a app with Sonata Admin, Sonata User and Fosuser. I have extend the Admin file from Sonata Admin to add new column and field :
2
votes
1 answer

customise message when add update delet entity using sonatadminbundle

hi i use sonatadminbundle to manage my entities i works very good. but i want to customise message when adding deleting updating my entity by default it look like this AppBundle\Entity\Product:000000000727a2de000000005cccd6bd Item…
Ait Friha Zaid
  • 1,222
  • 1
  • 13
  • 20
2
votes
1 answer

Upgrading Sonata from 2.3 to 3.0

I have an existing Symfony + SonataAdmin project which we've been running for a few years. I'd like to upgrade it to SonataAdmin 3.x. 3.0 would be a good start, then moving up to 3.x afterwards once we check it's all working. However, I can't seem…
caponica
  • 3,788
  • 4
  • 32
  • 48
2
votes
1 answer

SonataUserBundle can't login

I'm facing an error with SonataUserBundle. All is well configured. I use a custom entity for User and Group but nothing complicated (just add some string informations in the table) When i try to login on /admin with a user create trough console i…
2
votes
1 answer

Cannot override serializer config in SonataUserBundle to hide properties

I am using SonataUserBundle and JMSSerializerBundle and I would like to hide the token and other properties of my serialized object. The file I want to ovvride in SonataUserBundle is Resources/config/serializer/Model.User.xml . Here is my…
2
votes
3 answers

Sonata Admin: isGranted() always returns true in Admin class, but correct boolean in template

I'm using SonataAdminBundle and SonataUserBundle in a Symfony 2 project. The installed packages are: $ composer show | grep symfony friendsofsymfony/rest-bundle 1.7.7 This Bundle provides various tools to rapidly develop…
VMC
  • 1,378
  • 4
  • 16
  • 32
2
votes
1 answer

How to override SonataUser entities properties and forms?

I am setting up a brand new project using Symfony 2.7.x and Sonata Admin 2.3.x plus Sonata User. By default Sonata add a bunch of useless fields and I want to keep my entity as clean as possible. So my first question is: It's possible to override…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
2
votes
1 answer

Sonata Admine Bundle + User Bundle : Check registration by admin before allowing access to user

I have a Symfony 2.8 based project, I installed Sonata Admin Bundle and User Bundle and all is working perfectly. Now I have another constraint that I want to add. When I user sign up, I don't want to give him access immediately to the application.…
Auranx
  • 51
  • 1
  • 7
2
votes
2 answers

Sonata Admin Bundle + Sonata User Bundle : Override Login Form

I know this subject is already open, but after few month theire is no answer at all, and when i tried answer to know if this author got any solutions ... My comment was deleted. So i'm theire to post again this problem. I'm using for my…
2
votes
1 answer

Overriding Registration Form (SonataUserBundle) since Symfony2 Update to 2.8

After updating symfony2 with the dependencies to 2.8 I get the following error message when trying to override the sonata user bundle registration form: The field type "Sonata\UserBundle\Form\Type\RegistrationFormType" is not registered with the…
dominikweber
  • 622
  • 1
  • 9
  • 23
2
votes
2 answers

Attempted to call an undefined method named "setCurrentUri" of class "Knp\Menu\MenuItem"

i'm trying to configure sonataUserBundle and fosUserBundle. when i try to access to my profile page , i got this error : Attempted to call an undefined method named "setCurrentUri" of class "Knp\Menu\MenuItem". Did you mean to call…
Dario
  • 103
  • 1
  • 2
  • 9
1 2
3
16 17