WordPress.org

Forums

Google Authenticator
[resolved] Feature request: Better default description (5 posts)

  1. icc97
    Member
    Posted 2 years ago #

    It would be nice to have a better default description that will show up on Google authenticator. Currently it is 'WordPress blog', but if you have more than one WordPress login that is no use. The WordPress.com version automatically gives '[url]: [username]', e.g. 'blogs.com: joe' as the description.

    I think its quite a simple fix on line 241 of google-authenticator.php: $GA_description = __( 'WordPressBlog', 'google-authenticator' );

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

  2. icc97
    Member
    Posted 2 years ago #

    I've made a simple fix to the pluging with the following code:

    if ( '' == $GA_description ) {
    $user_info = get_userdata($user_id);
    $home_domain = str_replace(array('http://', 'https://', 'www.'), array('', '', ''), home_url());
    $GA_description = __( $home_domain.': '.$user_info->user_login, 'google-authenticator' );
    }

    That gives '[blog domain]: [username]' as the default

  3. Henrik Schack
    Member
    Plugin Author

    Posted 2 years ago #

    Hi icc97

    You are able to edit the default description you know.

    If I added your change one of the next feature requests would be to remove it again because of the more or less sensitive information being leaked in case your phone got lost.

    Best regards
    Henrik Schack

  4. icc97
    Member
    Posted 2 years ago #

    Hi Henrik,

    My apologies, this wasn't supposed to be an insult on your excellent plugin. I was purely following the example set by WordPress.com. Their naming structure just made life a bit simpler for me, in not having to think of a consistent naming structure for the description. Feel free to ignore this request, people can use my suggested changes at their own risk if they should find it useful.

    Cheers,

    Ian

  5. Henrik Schack
    Member
    Plugin Author

    Posted 2 years ago #

    No offence taken :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Authenticator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic