symfony-docs icon indicating copy to clipboard operation
symfony-docs copied to clipboard

[Password Hashing] Interface implementation

Open Rundaer opened this issue 2 years ago • 0 comments

Hey, I have come accross an issue where on application Users class we had to implement LegacyPasswordAuthenticatedUserInterface which was not mentioned on documentation. Otherwise we were not able to run password migrations.

    legacy:
        algorithm: sha512
    Master\Bundle\CoreBundle\Entity\Users:
        algorithm: sodium
        migrate_from:
            - bcrypt # uses the "bcrypt" hasher with the default options
            - legacy # uses the "legacy" hasher configured above

Rundaer avatar Jul 27 '22 18:07 Rundaer