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
4
votes
1 answer

Sonata User Bundle + Admin Bundle admin redirect after login

I'm trying to make sonata work like this: - if a regular user logs in he's redirected to "/" - if an admin logs in he's redirected to "/admin/dashboard" I tried to make it with firewalls that are in app/config/security.yml and here's what i come…
nonab
  • 311
  • 2
  • 12
4
votes
1 answer

Symfony2 - Overload registration form causes CSRF errors (added github repo)

I am currently overloading SonataUser registration form so that I can have my own custom form when people create an account. I have overloaded everything properly (the handler, the form type, the controller and the twig template). However, when I…
Etienne Noël
  • 5,988
  • 6
  • 48
  • 75
4
votes
1 answer

Symfony2 - Extend or replace SonataUserBundle registration form

I want to extend or replace the registration type form in SonataUserBundle. Currently, I have the sonata user bundle that was extended using the "easy-extends" command. Therefore, I have a directory "src/Application/Sonata/UserBundle/" that was…
Etienne Noël
  • 5,988
  • 6
  • 48
  • 75
4
votes
2 answers

Session lost during impersonation

I use SonataAdminBundle with configured sonata_user in config.yml: sonata_user: impersonating: route: _profile_logged # more config I have my admin panel under /admin prefix. I've configured UserAdmin (based on User entity)…
NHG
  • 5,807
  • 6
  • 34
  • 45
4
votes
1 answer

type of users SonataUserBundle + FOSUserBundle + SonataAdminBundle

I'm trying to create 3 users in my project: Cliente : Who will access front-end and have fields 'name', 'CPF', 'adress'. Vendedor : Who will register Offers in the site and have fields 'phone', 'CNPJ' Admin : Who will administer all Clientes,…
Munir
  • 739
  • 2
  • 14
  • 38
4
votes
1 answer

Symfony2 - Showing dynamic selectable roles

I'm using Symfony2 with Sonata. I have a list of sections on my application to which I'd like to give access to my users. Example: John should have access to section1 and section3 Bob should have access to section2 and section3 So I created 3…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
3
votes
2 answers

Sonata admin: user_block is not displayed

I'm using SonataAdmin and I can't see the user block displayed in the template (on the top right) although I have replaced it with my custom template as mentioned in the configuration here…
SlimenTN
  • 3,383
  • 7
  • 31
  • 78
3
votes
1 answer

Symfony 4 Sonata User Bundle Installation

I followed all instructions from installation guide but still have this error during installation of Sonata User Bundle on Symfony 4 application: Column name `id` referenced for relation from Application\Sonata\UserBundle\Entity\User towards…
Pavel Alazankin
  • 1,325
  • 1
  • 12
  • 22
3
votes
2 answers

Override Sonata Users services Menu Group

I make user of the Sonata User Bundle. According to the documentation under section 2.5 Extending the Bundle they want me to generate a complete new bundle for my user and group entities. I think this is completely unnecessary and I don't want that…
Mentos93
  • 581
  • 1
  • 7
  • 28
3
votes
0 answers

SonataUserBundle oneToMany Mapping Error

I dont know what else to try, this seems like it should be so straight forward, but the Symfony profiler continues to show this error: Here are my User and Venue classes: User: namespace Application\Sonata\UserBundle\Entity; use…
Zac Ball
  • 198
  • 8
3
votes
1 answer

Display profile FOS UserBundle + Sonata UserBundle

I use FOS UserBundle with Sonata Admin/UserBundle, and I wan't to display FOSUserBundle user profile information. I can access to the localhost/MyWebSite/web/app_dev.php/profile/edit, but I cannot access to…
IndianJo
  • 31
  • 5
3
votes
2 answers

Symfony2 - custom authentication provider with FOS User Bundle installed

I need help with building custom authentication in Symfony2 project. I've read the symfony cookbook http://symfony.com/doc/2.3/cookbook/security/custom_authentication_provider.html and found many questions about the custom authentication but they…
3
votes
2 answers

how to rename file upload with sonata bundle

How to rename file i download with sonata-bundle ? the file is PDF and the name in database folder is : /upload/media/default/0001/01/0000000013ac6bf9000000017c7d6398.pdf I want my file appears like this : /upload/media/0001/01/myfile.pdf thank you…
3
votes
1 answer

Sonata - missing user security status labels

I don't know why but since today Status labels just gone... I can change Status but there is no labels so I don't what I'm doing ;-) app\config\config.yml imports: - { resource: @MyProductBundle/Resources/config/parameters.yml } - {…
breq
  • 24,412
  • 26
  • 65
  • 106
3
votes
1 answer

Sonata Admin : Forgotten Password

I am using Sonata Admin with SonataUser/FosUser bundles. I want to integrate the "reset password" functionality from FosUser into Sonata. Is there a quick way to : integrate the "forgot your password" link into the sonata login page ? integrate…
Lucas T
  • 661
  • 8
  • 19
1
2
3
16 17