- Issue created by @desierto
- First commit to issue fork.
- Merge request !1Issue #3381784: In Drupal 7 /user is the login page, blocking with Apache blocks other /user paths โ (Open) created by malcomio
- ๐ฌ๐งUnited Kingdom malcomio
- Status changed to Needs review
17 days ago 5:23pm 24 June 2025 - ๐ฎ๐ณIndia maneesha binish
maneesha binish โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia maneesha binish
I have pushed a commit to the existing issue fork branch 3381784-in-drupal-7, which is already part of the active Merge Request !1.
The original patch in hook_menu_alter() correctly applied the disable_login_check_access() callback to both /user and /user/login. However, upon testing, I observed that an anonymous user who accessed the login page using the correct secret key was still unable to access /user, which is not the intended behavior.
I have updated the logic inside disable_login_check_access() to:- Allow logged-in users to access /user.
- Restrict access for anonymous users unless the correct secret key is provided in the URL query string.
No .htaccess rules are required โ handled entirely within Drupalโs access system.
Verified on a clean D7 site. No regressions observed.