Remove access check from UserAuthentication:lookupAccount query

Created on 20 May 2025, 5 months ago

I'm unable to log in to a site with email OR username login enabled when user entities are not visible to anonymous users.

This is because the Drupal\email_registration\UserAuthentication::lookupAccount method uses an entity query to do the user lookup, and this query has access checking enabled.

Let's disable that access check as this query needs to return a user before we have a logged in user.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇺Australia thtas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024