RTC bug PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
24 Nov 2024

Pull Request for Issue #43311, #39895, #38788, #29576.

Summary of Changes

When having MFA enabled for a user, you can't log out, can't force a password reset and can't setup MFA after first login.

Testing Instructions

  1. Create a user and setup MFA for that user. Save the user.
  2. For this new user, set the "Require password reset" flag.
  3. Try to login from the frontend.
  4. Setup a second user and have the user configuration enforce MFA for that usergroup.
  5. Force the user to reset their password
  6. Try to login from the frontend.
  7. Setup a third user without MFA (remember to disable enforcing MFA in the user configuration again)
  8. Force the user to reset their password
  9. Login with the user and try to logout again

Actual result BEFORE applying this Pull Request

The user is stuck in a redirect loop or can't logout.

Expected result AFTER applying this Pull Request

1-3 The user gets shown the MFA captive view and can type in the required code. Afterwards the user is redirected to a page to update their password.
4-6 The user is redirected to setup MFA and then to reset their password.
7-9 The user is able to logout

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 24 Nov 2024
avatar Hackwar Hackwar - change - 24 Nov 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Nov 2024
Category Libraries
avatar Hackwar Hackwar - change - 24 Nov 2024
Labels Added: bug PR-5.2-dev
avatar Hackwar Hackwar - change - 25 Nov 2024
The description was changed
avatar Hackwar Hackwar - edited - 25 Nov 2024
avatar bembelimen
bembelimen - comment - 26 Nov 2024

This needs to be moved to a new method and the old method needs a deprecation to be b/c

5b3c86a 3 Dec 2024 avatar Hackwar CS
avatar Hackwar Hackwar - change - 3 Dec 2024
Labels Added: b/c break
avatar Hackwar Hackwar - change - 3 Dec 2024
The description was changed
avatar Hackwar Hackwar - edited - 3 Dec 2024
avatar Hackwar
Hackwar - comment - 3 Dec 2024

This should be b/c now. Please test (again).

avatar Stevec4
Stevec4 - comment - 6 Dec 2024

@Hackwar
I successfully tested this on Joomla 5.2.2.
The user profile is presented, and the password was changed successfully - no loops or errors.
I still have some concerns with the implementation. When the user enters their current password, they are redirected to the index of the site and the profile is displayed requiring the PW change. But I am still able to view and read items on my index.
I feel that it should not allow viewing of anything but the profile page.

Thank you for taking this issue on it has prevented me from rolling out an updated J4/5 site since none of my users could reset their passwords without manual intervention form the admin.

steve

avatar fgsw
fgsw - comment - 7 Dec 2024

@Stevec4 can you open https://issues.joomla.org/tracker/joomla-cms/44521 and

  • login with your github-account
  • click button "Test this"
  • mark "Tested successfully"

Now the test count as successfull.

avatar Stevec4 Stevec4 - test_item - 7 Dec 2024 - Tested successfully
avatar Stevec4
Stevec4 - comment - 7 Dec 2024

I have tested this item ✅ successfully on f7778c3


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

avatar Stevec4
Stevec4 - comment - 7 Dec 2024

@fgsw Sorry forgot to submit the test.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44521.
avatar Hackwar Hackwar - change - 10 Dec 2024
Labels Removed: b/c break
avatar dautrich dautrich - test_item - 11 Dec 2024 - Tested successfully
avatar dautrich
dautrich - comment - 11 Dec 2024

I have tested this item ✅ successfully on 9c16296


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

avatar Hackwar Hackwar - change - 12 Dec 2024
Status Pending Ready to Commit
avatar Hackwar Hackwar - alter_testresult - 12 Dec 2024 - Steve4c: Tested successfully
avatar Hackwar Hackwar - change - 12 Dec 2024
Status Ready to Commit Pending
avatar Hackwar Hackwar - change - 12 Dec 2024
Status Pending Ready to Commit
avatar Hackwar
Hackwar - comment - 12 Dec 2024

rtc


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

avatar pe7er pe7er - change - 18 Dec 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-12-18 22:51:19
Closed_By pe7er
Labels Added: RTC
avatar pe7er pe7er - close - 18 Dec 2024
avatar pe7er pe7er - merge - 18 Dec 2024
avatar pe7er
pe7er - comment - 18 Dec 2024

Thanks @Hackwar !

avatar krileon
krileon - comment - 14 Jan 2025

This breaks any extension using password_reset_password_tasks to add additional allowed URLs since the new checkUserRequiresReset is now checking only password_reset_password_urls.

Shouldn't checkUserRequiresReset also be checking password_reset_password_tasks? Otherwise you've introduce a backwards compatibility break in a point release. We've just had to do an emergency fix and release because of this.. please stop doing this in minor/point releases.

Add a Comment

Login with GitHub to post a comment