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

How to assign permissions to logined user to show or edit their own Profile with SonataAdminBundle?

I am using Symfony2.8.10 + SonataAdminbundle + FosUserBundle/SonataUserBundle The user can edit all users when i try to assign sonata user permission to a user. But if i don't do this, the logined user can not show their profile.what should I do?…
O.K
  • 1
  • 1
0
votes
1 answer

Sonata User Advanced Configuration

I am trying to configure the advanced configuration of the SonataUser Bundle(https://sonata-project.org/bundles/user/3-x/doc/reference/advanced_configuration.html). After following the documentation I get the following errors on installing…
utkarsh2k2
  • 1,046
  • 3
  • 19
  • 42
0
votes
2 answers

Sonata Admin + FOS User Bundle - add captcha to login form

I'm looking for a way to add captcha to Sonata User Bundle login form (and the validation of captcha of course!). I couldn't find literally anything about using captcha in Sonata User Bundle, so I hope someone already been doing that and could…
pzaj
  • 1,062
  • 1
  • 17
  • 37
0
votes
1 answer

Sonata User Bundle and HWIOAuthBundle

How to integrate Sonata User Bundle with HWIOAuthBundle. At HWIOAuthBundle the doc is FOSUserBundle. But there is no doc for SonataUserBundle in NET. I googled net and found nothing. As per HWIOAuthBundle doc I created…
Sudhakar Krishnan
  • 732
  • 1
  • 8
  • 27
0
votes
0 answers

Sonata user bundle and FosUserBundle

At the beginning I installed FosUserBundle and extended the base user class: namespace AppBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use…
stefano
  • 123
  • 1
  • 14
0
votes
1 answer

Sonata User Bundle Avatar using Sonata Media Bundle, in custom form while update image updates old one, and also creating a new one

I'm working in Sonata User Bundle avatar using Sonata Media Bundle. Every thing works as expected in Sonata Admin(Backend). i.e while updating form admin, only the old file is replaced.(works good). Problem: While trying to edit user profile by…
0
votes
0 answers

Unable to authenticate users with FOSUser Bundle

I am using SonataAdmin bundle in conjunction with SonataUser Bundle for admin area management and authentication. However, I desire non-admin users to be registered at the from the frontend and sign-up to make order requests. I am having an issue…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
0
votes
1 answer

Sonata User Bundle: Managing many categories of users

I'm working on a Symfony 2.8 based project, I installed Sonata Admin Bundle and User Bundle and all is working perfectly. I have a customized register and profile pages, and the users are well managed by the admin dashboard and all is at top. But, a…
Auranx
  • 51
  • 1
  • 7
0
votes
1 answer

FOSUserBundle Translate route name

Hi I'm using routes of the FOSUserBundle with SonataUserBundle. Which are in english. I would like to translate them in French. I did it the routing.yml sonata_user_resetting: resource:…
Kevin
  • 4,823
  • 6
  • 36
  • 70
0
votes
1 answer

Cant Generate Easy-Extends of SonataUserBundle

i am at the ending stage of installing SonataUserBundle, When i run, app/console sonata:easy-extends:generate SonataUserBundle -d src --dest=src i get [Doctrine\Common\Persistence\Mapping\MappingException] Class…
mrhassan
  • 196
  • 1
  • 10
0
votes
1 answer

Symfony2 doctrine query to get data from 3 tables

I am using Symfony Sonata User bundle for user management. I have created another entity as LoginHistory with OneToMany relationship between User and LoginHistory I have to display the list of all users using KNP Paginator Bundle with their group…
Muhammad Taqi
  • 5,356
  • 7
  • 36
  • 61
0
votes
1 answer

Symfony 2 FOS user Cannot redirect to an empty URL

I'm trying to implement the register part of a project in Symfony with the Sonata Bundle but i get the exception "Cannot redirect to an empty URL". The error is generated in the controller file RegistrationFOSUser1Controller in the registerAction.…
Rafael Bermúdez
  • 123
  • 4
  • 16
0
votes
2 answers

I need more detail information about group handle with FosUserBundle

now, i'm trying to work out a admin back office in my Symfony projet. Probably before use SonataBundle, I would like to know what is "group_class" in app/config/config.yml what is the use ? # FOSUserBundle Configuration fos_user: db_driver: orm…
Bissap
  • 521
  • 1
  • 5
  • 23
0
votes
1 answer

Symfony2 Sonata Userbundle

8 installed with SonataAdminBundle, the admin area is working well, and I'm on the stage to install SonataUserBundle which is installed in src/Application. Everything is looking good, but when I try to force doctrine:schema:update I get this…
eXtreme
  • 244
  • 3
  • 18
0
votes
2 answers

Construct or validation does not work when I embed an entity with sonata_type_admin

I have an entity 'Employee' and I embed an entity 'User' with 'sonata_type_admin' form type (one to one relation). When I create a new Employee object I want to set default values to User object, but User __construct() or getNewInstance() method is…