Sylius / PluginSkeleton

Skeleton for starting Sylius plugins.
https://sylius.com/plugins/
73 stars 64 forks source link

Unable to access the admin section #317

Open zangarmarsh opened 2 years ago

zangarmarsh commented 2 years ago

On a fresh install, whenever I try to login with the default user "sylius" credentials, I get the following exception: "No password hasher has been configured for account "sylius". I'm using sylius v1.10.5.

zangarmarsh commented 2 years ago

I managed to solve this issue manually by editing Sylius\Component\User\Model\User in this way:

class User implements UserInterface, PasswordHasherAwareInterface
{
   ...

    public function getPasswordHasherName(): string
    {
        return 'argon2i';
    }
}