WordPress.org

Ready to get started?Download WordPress

Forums

Google Authenticator
[resolved] Display settings on a Page (17 posts)

  1. tns
    Member
    Posted 1 year ago #

    I've disabled access for users to wp-admin. Any way to display the settings on a page? For example, display these settings on My Account page for each logged-in user, so they can make changes without going to wp-admin/profile.php

    http://wordpress.org/extend/plugins/google-authenticator/

  2. Henrik Schack
    Member
    Plugin Author

    Posted 1 year ago #

    Hi TNS
    Hmm I'm not really sure I understand what it is you're asking for ?
    Where do I find this My Account page ?

    Best regards
    Henrik Schack

  3. tns
    Member
    Posted 1 year ago #

    That's just a page that you can create, doesn't have to be My Account, just thought that name would be indicative of the purpose. It's simply a page where a user can go to access the settings when the user is logged in.

    So just create a brand new page: there's nothing on it. Is it possible to display the plugin settings on this new page?

  4. Henrik Schack
    Member
    Plugin Author

    Posted 1 year ago #

    Hi
    I don't think that's a very good idea, userprofile settings belong on the userprofile page.

    Imagine how confusing it would be to find your way around in WordPress if every WordPress plugin did what you propose.

    Best regards
    Henrik Schack

  5. tns
    Member
    Posted 1 year ago #

    But how are people supposed to edit these settings when access to the backend has been restricted? I'm not talking about all settings, just the google authenticator portion. For example woocommerce plugin Displays and allows you to edit address on a page. I would like to do te same with the authenticator settings. Please help!

  6. Henrik Schack
    Member
    Plugin Author

    Posted 1 year ago #

    Well I guess you should not restrict access to the userprofile page.
    How are your users supposed to change password ? And change the other settings available on the userprofile page.

    Best regards
    Henrik Schack

  7. tns
    Member
    Posted 1 year ago #

    Woocommerce displays all on a page do they don't access admin area: change password, address, some others. Just don't have the ability to change or modify the google authenticator settings.

  8. Henrik Schack
    Member
    Plugin Author

    Posted 1 year ago #

    Userprofile settings belong on the userprofile page.

    If you want Google Authenticator settings on a Woocommerce page I guess you should talk to the Woocommerce authors.

    Best regards
    Henrik Schack

  9. tns
    Member
    Posted 1 year ago #

    The Woocommerce thing was just an example, showing they were able to display and edit userprofile settings on a page. That's what I want to do as well. Google Authenticator settings don't automatically go in the Userprofile, so it doesn't "belong" there: you added it there with a hook. How can I add the same settings to a page? That's all I want to do, just add it to a page.

  10. Henrik Schack
    Member
    Plugin Author

    Posted 1 year ago #

    Yes I added the Google Authenticator settings to the userprofile page, it's the logical home for userspecific settings, just like your password, your preferred editmode, your name, your password etc.

    There is no build-in functionality in my plugin that enables you to display these settings outside of the userprofile page.

    Best regards
    Henrik Schack

  11. tns
    Member
    Posted 1 year ago #

    So you will not help me?

    If the functionality was built in, I wouldn't need to ask for your help. I would like some way to display this on a page. If you find it in your heart to help make this happen, I'd really appreciate it. No need to further discuss logical placement and theory and religion and asl.

  12. Henrik Schack
    Member
    Plugin Author

    Posted 1 year ago #

    You are asking me if I'll add functionality that will confuse 99.9% of the users using this plugin.
    I'm sorry, but I think that would be wrong.

    Best regards
    Henrik Schack

  13. tns
    Member
    Posted 1 year ago #

    I'm just asking for a hook or some small script to display this, not a complete rewrite of the entire plugin and a published report detailing your scientific findings.

  14. tns
    Member
    Posted 1 year ago #

    If this is not possible without a complete overhaul (meaning no easy way to do this), then just say so, no need to go back and forth about ethics.

  15. Henrik Schack
    Member
    Plugin Author

    Posted 1 year ago #

    Perhaps you should try another plugin supporting Google Authenticator codes, https://www.authy.com/ looks pretty nice.

    Best regards
    Henrik Schack

  16. tns
    Member
    Posted 1 year ago #

    Doesn't look like they have the functionality I'm looking for built-in either, might need to start another thread with that dev about theoretical setting placement locations. Thanks for your time and happy new year.

    Best,

  17. smrt28
    Member
    Posted 1 year ago #

    Hi, it's easy to make the code 8 digits long and so safer. I'm not a PHP guy, but IMO you should be able to create the code length option easily. This patch just changes 6 => 8 digit code.

    You've to use QR code to set mobile google authenticator, but it works.

    81c81
    <       if ( strlen( $thistry ) != 8) {
    ---
    >       if ( strlen( $thistry ) != 6) {
    115c115
    <               $value = $value % 100000000;
    ---
    >               $value = $value % 1000000;
    256c256
    <       $chl = urlencode( "otpauth://totp/{$GA_description}?secret={$GA_secret}&digits=8" );
    ---
    >       $chl = urlencode( "otpauth://totp/{$GA_description}?secret={$GA_secret}" );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic