• Resolved shaifulborhan

    (@shaifulborhan)


    Hi,

    Is it possible to use our own authorization page instead of the “WP-admin looking” one for user to enter their authorization code after signing in? Basically I would like the page to look like our theme.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor robertabela

    (@robert681)

    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.

    Thread Starter shaifulborhan

    (@shaifulborhan)

    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.

    Thread Starter shaifulborhan

    (@shaifulborhan)

    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.

    Plugin Contributor robertabela

    (@robert681)

    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.

    Thread Starter shaifulborhan

    (@shaifulborhan)

    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!

    Plugin Contributor robertabela

    (@robert681)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom authorization code page’ is closed to new replies.