Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security][5.2.0 only] Call to a member function getUserLoader() on null #39262

Closed
@romaricdrigon

Description

@romaricdrigon

Symfony version(s) affected: 5.2.0
5.2-RC2 was not affected

Description

Using the new authenticator-based security,
and a custom authenticator (which extends AbstractAuthenticator),
users get this error after login: Call to a member function getUserLoader() on null

image

This is caused by PasswordMigratingListener, being triggered automatically since #39213, to assume than every Passport contains an UserBadge. This is nor documented (here) nor enforced by UserPassportInterface, so I believe it should be tested.

How to reproduce

/

Possible Solution

PR coming soon

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions