Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

json_login problem solve #71

Open
toadbeatz wants to merge 2648 commits intoKnpLabs:masterfrom
FriendsOfSymfony:master
Open

json_login problem solve #71
toadbeatz wants to merge 2648 commits intoKnpLabs:masterfrom
FriendsOfSymfony:master

Conversation

@toadbeatz
Copy link

// vendor/friendsofsymfony/user-bundle/Model/User.php

...
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
...

//add implements PasswordAuthenticatedUserInterface
abstract class User implements UserInterface,PasswordAuthenticatedUserInterface, EquatableInterface, \Serializable
{

.....

//add :?string to be compatible with PasswordAuthenticatedUserInterface
public function getPassword():?string
{
}

...
}

XWB and others added 30 commits January 8, 2020 19:21
Make 2.x tests green again
Revert UserManagerInterface::updateUser() BC break
Safe option on XML mapping was removed on doctrine/mongodb-odm 2.0
Changed suggested example encoder from bcrypt to auto
stof added 30 commits June 25, 2024 10:53
Remove the implementation of the old UserProviderInterface method
Remove unnecessary compatibility checks in tests
Convert XML config files to PHP or Yaml
The PasswordUpdater implementation resets the plain password to `null`
after hashing the password, marking the fact that a next code (done in a
Doctrine listener for instance) would not need to hash anything anymore.
Instead of relying on `UserInterface::eraseCredentials` which is
deprecated in Symfony 7.3+ and not guaranteed to implement this behavior
if the entity overrides the method, the `null` is now set explicitly.
This is technically a BC break for projects extending this class and
overriding the method. However, there is no use case for extending this
class instead of implementing the Symfony interface directly.
Symfony has deprecated the XML format for route definitions. The bundle
now ships PHP routing files in addition to the XML ones (with tests
ensuring they are in sync) and the documentation uses the PHP files.
The XML files will be removed in the next major version of the bundle as
removing them is a BC break.
Provide PHP routing files in parallel of the XML ones
Install phpunit as a dev dependency directly
- add jobs on PHP 8.4 and 8.5
- add a job for the 7.4 LTS
- update actions
This also bumps the min PHP version to 8.2 as Symfony 7 does not support
PHP 8.1.
Bump the min Symfony version to 7.3
This avoids the deprecation warning of Symfony about the deprecation of
the method. Our User class already excludes the plain password from the
serialized data even when this method is not called.
Mark `User::eraseCredentials` as deprecated
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.