Skip to content

[6.2] [AI] Add configuration options for mod_login#47946

Open
MacJoom wants to merge 5 commits into
joomla:6.2-devfrom
MacJoom:feature/mod_login-toggle-recovery-links
Open

[6.2] [AI] Add configuration options for mod_login#47946
MacJoom wants to merge 5 commits into
joomla:6.2-devfrom
MacJoom:feature/mod_login-toggle-recovery-links

Conversation

@MacJoom

@MacJoom MacJoom commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This is a frequently requested feature from the community, which until now required a layout override of default.php just to remove these links.

Summary of Changes

Adds two new parameters to the Login module (mod_login) so administrators can optionally hide the "Forgot your password?" and "Forgot your username?" links without needing a template override:

  • Reset Password Link (showPasswordReset) — show/hide the password reset link.
  • Forgot Username Link (showUsernameReminder) — show/hide the username reminder link.

Both options default to Show, so existing sites and module instances are completely unaffected. The links only disappear when an admin explicitly switches them off.

Testing Instructions

  1. Apply this Pull Request - Patchtester
  2. Go to System → Site Modules and open (or create) a Login module
  3. On the Module tab, note the two new switchers: Reset Password Link and Forgot Username Link.
  4. Set both to Show, save, and view the module on the frontend.
  5. Set one or both to Hide, save, and view the module on the frontend again

Actual result BEFORE applying this Pull Request

The "Forgot your password?" and "Forgot your username?" links are always displayed in the Login module. The only way to remove them is a template/layout override.

Expected result AFTER applying this Pull Request

Each link can be shown or hidden independentmeters. Default behaviour (both shown) isunchanged.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org: TBD
  • No documentation changes for guide.joomla.org needed
  • Pull Request link for manual.joomla.org:
  • No documentation changes for manual.joomla.org needed

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-6.2-dev labels Jun 12, 2026
@MacJoom MacJoom marked this pull request as ready for review June 12, 2026 15:20
@MacJoom MacJoom requested a review from chmst as a code owner June 12, 2026 15:20
@brianteeman

Copy link
Copy Markdown
Contributor

it works but I think this is the wrong place. it is only removing the cosmetic link in the module not the functionality and personally if I want to prevent password reset etc then it should be an option in the component the same as the option for creating accounts is managed in the component options but displayed in the module

@muhme

muhme commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 4b35cdd

Tested with JBT, 'Reset Password Link' and 'Forgot Username Link' can be seperatly hidden, default is still shown


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47946.

Comment thread modules/mod_login/mod_login.xml
@MacJoom

MacJoom commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

it works but I think this is the wrong place. it is only removing the cosmetic link in the module not the functionality and personally if I want to prevent password reset etc then it should be an option in the component the same as the option for creating accounts is managed in the component options but displayed in the module

The usecase as i found out is to have the links still working but use them in another place

@brianteeman

Copy link
Copy Markdown
Contributor

Then this module satisfies the usecase

Comment thread modules/mod_login/mod_login.xml
@brianteeman

Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 20ae55d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47946.

@richard67

Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47946.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jun 15, 2026
@charvimehradu

Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 20ae55d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47946.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators PR-6.2-dev RTC This Pull Request is Ready To Commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants