Thread Starter
llexan
(@llexan)
Looks like it was something misconfigured with WF, so I have two factor working now. However, I’m only getting the error code that says to enter the two factor code and not the field to actually input it.
Is there a way to edit the wpum login template to forward/show the Authenticator Code field that WordFence typically shows on the default WP Login?
Thanks again! And hope this makes sense!
Hi llexan,
I’m not familiar with WF 2FA system so I’m unable to provide any help for this but I can guess what’s happening. Like you’ve mentioned, the issue is that WF expects a field to be sent through the login but it’s not there.
You can edit the template file of the plugin called form-login.php under the templates/forms/ folder. In order to customize the templates please read the tutorial here https://docs.wpusermanager.com/article/87-templates-customization and here https://docs.wpusermanager.com/article/88-example-template-customization you’d however need to know what the name of the field is that WF expects.
Hope this helps.
Thread Starter
llexan
(@llexan)
Thanks! That helps quite a bit. If I know the field WF is looking for how do I add that to form-login.php? Or is there somewhere else I define it and it gets pulled in? If I can’t get that working, is there a away to redirect Admins to the standard WordPress login (login.php) instead of the custom one made with WPUM?
Thank you again!
Hi llexan,
You’d need to add a text field within the form’s template and assign as name attribute, the name of the field that WF expects, this assuming that WF checks on $_POST during submission. Again, I’m unsure how WF does that exactly.
If you wish to disable the built-in redirect of the login form, you can add this line to your theme’s functions.php file
remove_filter( 'login_url', 'wpum_login_url', 10 );
Thread Starter
llexan
(@llexan)
Awesome, thank you so much for the help!