Skip to content

make:user gives deprecation errors for password hashing #908

Closed
@gijsjager

Description

@gijsjager

Hi!

I am using Symfony 5.3 with Symfony maker bundle 5.3
When executing the command: bin/console make:user with hashing on it gives the following errors at the end:

2021-06-24T09:18:09+00:00 [info] User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\NativePasswordEncoder" class is deprecated, use "Symfony\Component\PasswordHasher\Hasher\NativePasswordHasher" instead.
2021-06-24T09:18:09+00:00 [info] User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface" class is deprecated, use "Symfony\Component\PasswordHasher\PasswordHasherInterface" instead.
2021-06-24T09:18:09+00:00 [info] User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\SelfSaltingEncoderInterface" interface is deprecated, use "Symfony\Component\PasswordHasher\LegacyPasswordHasherInterface" on hasher implementations that deal with salts instead

It also looks like that this deprecation errors are causing that the passwords aren't hashed while adding to the DB
(I am trying this in combination with Api Platform)

Can anyone give me a good solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions