A user, Kameron_Bourgeois, reported an issue with the voting plugin where the Two Factor Authentication (2FA) text box appears when users click the “Log In” button under the vote count, but not when using other sign-in buttons on the site. featheredtoast investigated and found that the issue is due to the login modal being triggered from a different HTML structure, which is causing the 2FA box to appear. A fix has been committed to the plugin’s GitHub repository, and sam advised that updating the forum via the web UI will apply the fix.
So I installed the plugin and it is awesome, but when a user who is not signed in clicks the 'Log In" under the vote count then it prompt them to the normal login + a two factor authentication below. I am afraid that the two factor authentication text box might confuse my users. When clicking the other sign in buttons on the site, the two factor text box does not appear. The Two Factor Authentication box only appears for the voting login button. I couldn’t find any settings that could be causing this. Any help would be greatly appreciated in removing the two factor authentication text box! Thanks!
Here is an image of the button that I am having the issue with and the prompt it gives
I’m digging in - Looks like there are different results of showing the login modal from the builtin login button vs the plugin’s. Two factor is being shown because it’s missing some css rules due to the different html structure. The entire login layout gets screwed up here, including social login buttons. Hang tight while I get to the bottom of this one.
It’s a start - To clarify, a showModal call by itself is fine, but the login modal specifically has a few hooks that also need to be triggered in order to display correctly. You’d get less false positives by filtering specifically on showModal('login') or showModal("login").