Support » Plugin: Admin Menu Search » Chrome wants to insert stored username

  • Hi,

    for some reason, on some plugin pages this plugin will attract the Chromes auto-fill feature for login credentials. I have stored my account in Chrome for my local WP website, so I don’t have to enter my login details all the time.

    On most admin sites this plugin will not cause any issues, but for some reason it fills my stored username when I visit the Settings page of UpdraftPlus (URL: /wp-admin/options-general.php?page=updraftplus&tab=settings) that is a backup plugin for WP. I’m not sure why this happens. It’s not big of a deal, but wanted to let you know, maybe you like to reproduce.

    Best regards,
    Martin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same problem.
    I’ve temporary worked around this problem by putting a hidden text field called username, because Chrome not respect autocomplete=”off”
    Chrome will populate hidden field and will not fill search box.

    file: admin-menu-search.js
    line 5
    I have replaced this
    jQuery("#adminmenu").prepend("<li style='width: 80%;margin: 10px auto 10px auto;'><input type='text' id='admin-menu-filter-field' placeholder='Search Menus' style='width: 100%;background-image: url(../wp-content/plugins/admin-menu-search/icon-search.png);background-repeat: no-repeat;text-indent: 20px;-webkit-user-select:text;'></li>");

    to this

    jQuery("#adminmenu").prepend("<li style='width: 80%;margin: 10px auto 10px auto;'><div style='height: 0px; overflow: hidden'><input type='text' name='username' style='min-height: 0.01px !important; height: 0.01px !important;font-size: 0.1px;line-height: 0.5;padding: 0;border: 0px;'/></div><input type='text' id='admin-menu-filter-field' placeholder='Search Menus' style='width: 100%;background-image: url(../wp-content/plugins/admin-menu-search/icon-search.png);background-repeat: no-repeat;text-indent: 20px;-webkit-user-select:text;' autocomplete='false' onfocus=\"this.value=''\"></li>");

    • This reply was modified 2 years, 9 months ago by suigintou.
    Plugin Author herchen

    (@herchen)

    Wow, great find! I’ve confirmed behavior on the UpdraftPlus settings page also. That plugin page has a password field (click Migrate/Clone, Create a temporary clone) so Chrome tries to put the saved username in the admin menu search box.

    To prevent issues with plugins that might have a “username” field, I’ve changed the input field to a textarea and styled it appropriately. Using a hidden input does work, (thanks @suigintou ) but in case another plugin has a “username” this hopefully won’t cause a problem there.

    I’m going to use the updated version for a day or so and make sure there aren’t any other issues.

    Thanks for posting the bug and I’m glad you like the plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Chrome wants to insert stored username’ is closed to new replies.