MFA Captive - user is logged on Moodle before entering a code

  • rbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 days 21 hours ago #1 by rbi
This message contains secure information

Please Log in or Create an account to join the conversation.

More
2 days 20 hours ago #2 by Antonio Durán
Hi.

Have you changed the config of the event to use in the Joomdle user plugin?

After checking, I see that the onUserLogin event will fire before MFA is completed, so if you are using that even, please change to onUserAfterLogin (the default) and test.

Please Log in or Create an account to join the conversation.

  • rbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 days 19 hours ago #3 by rbi
it is set on onUserAfterLogin

Please Log in or Create an account to join the conversation.

More
2 days 19 hours ago #4 by Antonio Durán
My bad. I checked the code, and even if the default is set to onUserAfterLogin, the code used onUserLogin for the default! I have changed it for next release....

For now, please try saving the plugin to see if that helps.... although I am thinking it should save when you published it, so I am not sure.....

Please Log in or Create an account to join the conversation.

  • rbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 days 18 hours ago #5 by rbi
Thanks
Saving the plugin made no difference.
If it is changing the string on the code I can do it if you give me the line in the good file.

Please Log in or Create an account to join the conversation.

More
2 days 16 hours ago #6 by Antonio Durán
I could test now locally, and it turns out that Joomla calls onUserAfterLogin before MFA is completed, so this is expected behaviour :(

I will need to investigate if there's something we can do. I will report back once I check.

Please Log in or Create an account to join the conversation.

  • rbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
18 hours 29 minutes ago #7 by rbi
This message contains secure information

Please Log in or Create an account to join the conversation.