Workaround for Chrome autofill (SKINS)

Version 1.46.0


Chrome is rather persistent about auto-filling your fields for you. This is usually great is some cases, but is immensely annoying when you're working in an interface that creates and manages user accounts, with passwords. Chrome also loves to ignore: <form autocomplete="off"> <input autocomplete="off"> which boggles my mind why they'd do that. Solution found here: Credit: Mike Nelson Where this code is added to the beginning of the form. Chrome fills it in, thinking it did it's job, but the values filled in are hidden. <!-- fake fields are a workaround for chrome autofill getting the wrong fields --> <input style="display:none" type="text" name="fakeusernameremembered"/> <input style="display:none" type="password" name="fakepasswordremembered"/> SKINS: Affected pages in the enhanced skin: reseller/change_user_passwd.html admin/create_admin.html user/create_login_key.html admin/create_reseller.html reseller/create_user.html user/db/db_create.html user/db/db_user_create.html user/ftp/ftp_create.html user/email/pop_create.html user/filemanager/protect.html Added the following token: |HTM_PREVENT_AUTOFILL| right after the beginning of the <form ..> --------- files_user.conf, added: HTM_PREVENT_AUTOFILL=user/prevent_autofill.html -------- new file to fill the token: user/prevent_autofill.html with the code from above.

Interested to try DirectAdmin? Get a 30-day Free Trial!