Same as done in #11667, but this time for the plg_authentication_joomla.
Testing Instructions
Mainly code review, but to actually test it:
1. Use latest staging
2. Apply patch
3. Try to use 2FA to login in backend and frontend (check "How to test 2FA" ibn the end of the PR description)
4. Code review
Documentation Changes Required
None.
How to test 2FA
Enable Google Authenticator two factor authentication plugin: Extensions > Plugins (twofactorauth)
Create a dummy user and configure it to use with Google Authenticator: Users > Manage > Edit (2FA tab)