Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access the admin section #317

Open
zangarmarsh opened this issue Feb 11, 2022 · 1 comment
Open

Unable to access the admin section #317

zangarmarsh opened this issue Feb 11, 2022 · 1 comment

Comments

@zangarmarsh
Copy link

zangarmarsh commented Feb 11, 2022

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
Copy link
Author

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';
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant