pugxmultiuserbundle

Symfony/PUGXMultiUserBundle separate sessions/cookies for two types of users logged at the same time?

…衆ロ難τιáo~ 提交于 2019-12-24 10:49:46
问题 Symfony2.8 with PUGXMultiUserBundle: I've got multiple user types (separate entities) and one login form. Users are redirected to different "subsystems", based on user entity type. And now client wants the sessions to be separate, so in two browser windows/tabs it should be possible to login with two users of different types. Is it even possible without creating separate subdomains for each subsystem? 来源: https://stackoverflow.com/questions/40261879/symfony-pugxmultiuserbundle-separate

FOSUserBundle twig form submit not expected behaviour

邮差的信 提交于 2019-12-13 07:46:57
问题 What is up, guys. I'm using PUGXMultiUserBundle on top of FOSUserBundle to register and login two different user entities. Everything is working out of the box: I have my User class extending the base User class from FOSUserBundle and my two entities for both Seller and Customer that extend my User class. I don't want my users to input their username, as email is the prefered login property. So in the setEmail() and setEmailCanonical() methods of my User class, I also set username and

PUGXMultiUserBundle: custom profile template

家住魔仙堡 提交于 2019-12-11 23:33:47
问题 A method to enable custom user profile templates involves modifying the vendor's Configuration.php . Is there a method that does not? Or is this a viable solution? Current method appears below: Update: I'm thinking my bundle needs to take responsibility for the configuration so I'm in the throes of deciphering and applying the CompilerPassInterface. [Edit: another way to ask the question - can this be done by prepending the template option with PrependExtensionInterface ? If so, how might

Symfony 2 with PUGXMultiUserBundle and multi login form

≯℡__Kan透↙ 提交于 2019-12-11 03:15:24
问题 here my problem : I have two categories of users in my application (locataires and propriétaires), and i need one (or two) login form. I use PUGXMultiUserBundle to manage all my users. here is the view for loggin "proprietaires" : {% extends "::layout.html.twig" %} {% block title %} Nous contacter - {{ parent() }} {% endblock %} {# Contents #} {% block body %} <div class="row"> <div class="col-md-12"> <div class="well"> <form action="{{ path('proprietaire_login_check') }}" method="post">

FOSUserBundle or PUGXMultiUserBundle to have two different user profiles (Symfony2)

隐身守侯 提交于 2019-12-08 23:32:41
问题 I'm doubtful about how to approach this problem: My Symfony2 app for this issue has two different profiles, name 'em "Seller" and "Buyer". The goal is to keep a bunch of attributes about a "Seller", and, on the other hand, not much about the "Buyer" (email and password would do it). I realise that it's not easy to have two different entities log in and register using FOSUserBundle. There are quite some other bundles, such as PUGXMultiUserBundle that 'hack' FOSUserBundle, and are not easy to

How to assign roles on successful registration?

被刻印的时光 ゝ 提交于 2019-12-05 21:21:35
问题 I'm using fos user bundle and pugx multi user bundle. I've read all the documentation and I'm new to Symfony. In the pugx multi user bundle there's a sample on every point but one: sucessful registration. Samples of overriding controllers for generating forms => ok Samples of overriding templates for generating forms => ok Samples of overriding successful registration sample => nothing. Here's my code: class RegistrationController extends BaseController { public function registerAction

Assign a Role with FosUserBundle

冷暖自知 提交于 2019-12-03 13:10:11
问题 I'm really new to Symfony, I'm trying to register a ROLE to a User with FosUserBundle but I can't manage how to do it. Actually I integrated also PUGXMultiUserBundle in order to have two different form for two different roles. Can anyone help me? Thanks in advance --UPDATE-- I report my code in order to explain clearly. I create this files with the guide of PUGXMultiUserBundle This is my entity: //C:\BitNami\wampstack-5.4.23-0\frameworks\symfony\src\Acme\ManagementBundle\Entity