bug ? PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
21 Sep 2022

Pull Request for Issue #38790.

Summary of Changes

When silent responses types is not set in the user configuration, eg. after an upgrade. Then the MFA captive screen is always shown as soon as the session expires.

The problem is that explode(,', ''); returns an array with an empty element in it but the check is only done if the array of silent response types is empty.

Ping @nikosdion for review

Testing Instructions

  • Enable MFA method like google authenticator on your account
  • Make sure the com_users record in the extension table has params like {}
  • Log in on the front end
  • Delete the session cookie of your joomla site in the dev tools of the browser, but not the one where the name starts with "joomla_remember_me_"

Actual result BEFORE applying this Pull Request

The screen is shown which requires to enter the Verification code. Page can't be browsed.

Expected result AFTER applying this Pull Request

Page loads normal and you are logged in.

avatar laoneo laoneo - open - 21 Sep 2022
avatar laoneo laoneo - change - 21 Sep 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Sep 2022
Category Front End Plugins
avatar nikosdion
nikosdion - comment - 21 Sep 2022

I added a comment on an alternative implementation which should work better with the messier users (I'm sure we have several Chaotic Neutral people using Joomla).

avatar laoneo laoneo - change - 21 Sep 2022
Labels Added: ?
avatar laoneo
laoneo - comment - 21 Sep 2022

Can you have another look?

avatar laoneo
laoneo - comment - 21 Sep 2022

Now it should also work when you put in something like " , " in the user options.

cac5afb 21 Sep 2022 avatar laoneo php 7
avatar laoneo laoneo - change - 4 Apr 2023
Labels Added: ? PR-4.4-dev
Removed: ?
avatar laoneo laoneo - change - 4 Apr 2023
Title
[4.2] Handle silent response types correctly when empty
Handle silent response types correctly when empty
avatar laoneo laoneo - edited - 4 Apr 2023
avatar laoneo laoneo - change - 13 Apr 2023
Labels Added: bug
avatar laoneo laoneo - change - 13 Apr 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-04-13 05:59:20
Closed_By laoneo
avatar laoneo laoneo - close - 13 Apr 2023

Add a Comment

Login with GitHub to post a comment