cesurapp / pd-user Goto Github PK
View Code? Open in Web Editor NEWSimple user management system for Symfony 5.
License: MIT License
Simple user management system for Symfony 5.
License: MIT License
Hi it since to be not bad this bundle. is it compatible 100% whit Symfony5 ?
Regards
Platform: Symfony 4.4
composer require appaydin/pd-user
PHP Fatal error: Declaration of Pd\UserBundle\Security\SwitchUserVoter::voteOnAttribute(string $attribute, $subject, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token) must be compatible with Symfony\Component\Security\Core\Authorization\Voter\Voter::voteOnAttribute($attribute, $subject, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token) in /mnt/sda/www/nts-synchronizer/vendor/appaydin/pd-user/Security/SwitchUserVoter.php on line 50
On symfony 4.4 Pd\UserBundle\Security\SwitchUserVoter::voteOnAttribute signature is SwitchUserVoter::voteOnAttribute$attribute, $subject, TokenInterface $token), without string type hinting.
Fresh Symphony 5.2 project, PHP 8.0, installed latest module.
Login page shows OK, however Register and Password Reset pages do not work.
I followed your steps to integrate this. Do you have any advice ?
Symfony\Component\Form\Exception\InvalidArgumentException:
Could not load type "": class does not exist.
at ...\vendor\symfony\form\FormRegistry.php:85
at Symfony\Component\Form\FormRegistry->getType('')
(...\vendor\symfony\form\FormFactory.php:52)
at Symfony\Component\Form\FormFactory->createBuilder('', object(User), array('profile_class' => 'App\\Entity\\Profile'))
(...\vendor\symfony\form\FormFactory.php:28)
at Symfony\Component\Form\FormFactory->create('', object(User), array('profile_class' => 'App\\Entity\\Profile'))
(...\vendor\symfony\framework-bundle\Controller\AbstractController.php:327)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm('', object(User), array('profile_class' => 'App\\Entity\\Profile'))
(...\vendor\appaydin\pd-user\Controller\SecurityController.php:89)
at Pd\UserBundle\Controller\SecurityController->register(object(Request), object(TraceableEventDispatcher), object(DataCollectorTranslator), object(UserPasswordEncoder), object(Mailer))
(...\vendor\symfony\http-kernel\HttpKernel.php:157)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(...\vendor\symfony\http-kernel\HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(...\vendor\symfony\http-kernel\Kernel.php:195)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(...\public\index.php:20)
Hi i'm trying to set compagny, and some of my entity profile, in event
public function onRegisterBefore( UserEvent $userEvent)
{
$user = $userEvent->getUser();
$user->getProfile()->setAddress("dede");
$user->getProfile()->setCompagny("dede");
}
i get error Call to a member function setAddress() on null
i want to set this form value how was get by api before registration and set in the session.
how do i can do this?
I Just try run this bundle in clear symfony 5.1
First I don't know why but vendor/appaydin/pd-user/Controller/SecurityController.php online 77 don't see my config and code get empty variable... but I jsut added all config to config/service.yml and this start working.
But now I see problem on line 89... so I think parameter register_form can't be empty
after implement the installation, i get this error on my console with ending command:
php bin/console doctrine:schema:update --force
and get:
PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]
what is problem?
in the future do you plan to give this option : API rest ?
Regard
I have a problem when I try to install your package :
Cannot autowire service "Pd\UserBundle\Command\ChangePasswordCommand": argument "$hasher" of method "__construct()" references interface "Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface" but no such service exists. Did you create a class that implements this interface?
Symfony version : 5.3.6
PHP version : 8.0.8
FOSuserbundle is turning out to be a headache. I am using it to integrate this Admin https://github.com/kevinpapst/AdminLTEBundle , how complete is pd-user compared to FOSUB, I think I would need some events and Template. I am still new to symfony.
Hi,
Securitycontroller.php, row 279
$form = $this->createForm(ResettingPasswordType::class, $user);
This can't be put in configuration file to use custom form.
Thanks!
it would be nice to also have the last login ip ? and to add automatique as the "lastDate"
thank
since projects use their system to send emails, it might be good to add the possibility of choosing "email adapter"
regards
Hi i gest it's me how deed not setup well, but i have probleme with email template.
i have field all template and i still receive email empty?
all my template are in project templates/member/Auth
and i have setup in user.yaml template_path: 'member/Auth
??? thank for helping
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.