Coder Social home page Coder Social logo

pd-user's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pd-user's Issues

Compatible Sf5 ?

Hi it since to be not bad this bundle. is it compatible 100% whit Symfony5 ?

Regards

fatal error installing bundle

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.

[Symphony 5.2][PHP 8] Could not load type "": class does not exist.

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)        

On event how to set in profile?

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?

Clear symfony 5.1 and problems

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

authentication method unknown to the client

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?

API rest option ?

in the future do you plan to give this option : API rest ?

Regard

No such service exists

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

last login ip

it would be nice to also have the last login ip ? and to add automatique as the "lastDate"

thank

Email sender optional

since projects use their system to send emails, it might be good to add the possibility of choosing "email adapter"

regards

Template for emailing

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.