-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Deprecation: Returning a string from "getSalt()" without implementing the LegacyPasswordAuthenticatedUserInterface #1652
Comments
Hi @piddubnij Thanks for the report, could you open a PR with the fix ? Thanks |
I'm not familiar with bundle insides. So just add interface may break something. namespace Sonata\UserBundle\Model;
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\UserInterface as SymfonyUserInterface;
abstract class User implements LegacyPasswordAuthenticatedUserInterface, UserInterface, \Stringable
{ |
@VincentLanglet what would the preferred fix? implement the Interface (which would be a BC break?) |
Doesn't seem to be a BC break to me so I would do this way The only issue would be if the |
Implemented in 5.3, so should be in all of this supported Symfony versions: |
Environment
Sonata packages
show
Symfony packages
show
PHP version
Subject
Minimal repository with the bug
Steps to reproduce
"sonata-project/user-bundle": "^5.0"
"symfony/*": "5.4.*"
Login to admin and use Profiler -> [Last 10] -> 302 POST https://.../login_check -> Token -> Logs
Expected results
No deprecations
Actual results
Stack Trace
The text was updated successfully, but these errors were encountered: