- Posts: 27
MFA Captive - user is logged on Moodle before entering a code
- rbi
- Topic Author
- Offline
- Junior Member
-
Less
More
2 days 21 hours ago #1
by rbi
MFA Captive - user is logged on Moodle before entering a code was created by rbi
This message contains secure information
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
2 days 20 hours ago #2
by Antonio Durán
Replied by Antonio Durán on topic MFA Captive - user is logged on Moodle before entering a code
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.
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
-
Less
More
- Posts: 27
2 days 19 hours ago #3
by rbi
Replied by rbi on topic MFA Captive - user is logged on Moodle before entering a code
it is set on onUserAfterLogin
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
2 days 19 hours ago #4
by Antonio Durán
Replied by Antonio Durán on topic MFA Captive - user is logged on Moodle before entering a code
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.....
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
-
Less
More
- Posts: 27
2 days 18 hours ago #5
by rbi
Replied by rbi on topic MFA Captive - user is logged on Moodle before entering a code
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.
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.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
2 days 16 hours ago #6
by Antonio Durán
Replied by Antonio Durán on topic MFA Captive - user is logged on Moodle before entering a code
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.
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
-
Less
More
- Posts: 27
18 hours 29 minutes ago #7
by rbi
Replied by rbi on topic MFA Captive - user is logged on Moodle before entering a code
This message contains secure information
Please Log in or Create an account to join the conversation.