Thank you for using our plugin @shaifulborhan
The authorization code page is a “standard” WordPress login page. We will look into this and see what the options are. In the meantime, I have a question for you; do you want to change the logo only, or you also want to change the rest of the page (background colour, the shape and colour of the dialog etc)?
Looking forward to hearing from you.
Hi @robert681
No it’s not just a logo change. I would like to use a custom page template for the authorization page because at the moment I am already using a custom page template for login. So it would be nice to have the authorization code page looking seamless.
Just a simple Authorization Code text field and a submit button will do. It’s ok to NOT have the extra feature like “Use Backup Codes” on this custom authorization page. I can certainly build the HTML form for that page, but is there a function I can call from the plugin to process the form submission for validating the authorization code?
Thank you in advance.
Managed to figure this one out. Solution is somewhat hacky but looks to be working fine. I am using the TOTP and Backup Codes methods on my custom authorization page. Just needed to change a few lines of code in includes/classes/Authenticator/Login.php to make it work.
Hello @shaifulborhan
I am glad you found a solution to this, however, we’d also like to have out-of-the-box support for something like this.
Can you please give us more details on what you’ve changed? If you do not want to share them here, you can always send us the details over email to [email protected].
Looking forward to hearing from you.
Hi @robert681,
Absolutely happy to share. I have created a repo here containing only the modified files https://github.com/shaifulborhan/WP2FA-plugin-custom-authorization-page
The modifications in the Login class are marked with /*custom code*/ comments.
Thanks!
Thanks a lot for your help @shaifulborhan
We will add this functionality to the plugin in one of our upcoming updates.
Looking forward for this option, I’m using elementor builder, and I thought that if I just make a custom page and use the Shortcode I can get it done, but it is still showing the “WordPress Styled” Page.