This topic has already unfortunately been broached on a smaller issue for the SMTP fields in settings, but there is an annoying issue across all of the WHMCS admin, where any browser will autofill / autocomplete the WHMCS admin (or any saved login info) login to any username/password fields in WHMCS. This is extremely annoying in the following cases, to name a few.
- Editing / Viewing a client Profile
- Editing / Viewing custom support ticket fields that contain a username/password field
- Editing / Viewing custom module options that contain a username/password
- Editing / Viewing WHMCS General Settings > SMTP settings
- And many more scenarios.
This can be resolved very easily by either adding a hidden username/password field to the top of the page code to trap this browser autocomplete/autofill or using the autocomplete="off" css setting in the fields above.
This is a very simple fix that will save 100% of WHMCS users grief every day.
Merged Ideas
Disable autocomplete in Setup->General->Mail on smtp user/pass fields
Well this "feature" is a bit annoying:If I save my access credentials to whmcs in Firefox and then go to Setup->General Settings->Mail, those SMTP user/pass fields are autocompleted with my whmcs credentials. If I change anything else, it gets saved to database in plain text.The relevant HTML is here:<tr><td class="fieldlabel">SMTP Username</td><td class="fieldarea"><input type="text" name="smtpusername" size="35" value=""></td></tr><tr><td class="fieldlabel">SMTP Password</td><td class="fieldarea"><input type="password" name="smtppassword" size="20" value=""></td></tr>All that is needed is adding a parameter to both fields:autocomplete="off"This surely can be done easily and in a timely manner, right? :)b.
22 Comments
Login to post a comment.
We opened this issue in a ticket with WHMCS - but in the meantime, it's easy to resolve by simply hiding this dropdown in mobile - it's not like we ever use it anyways (isn't that what the search in the top right of WHMCS is for?).
Attached the updated hooks file to share.
It turns out LastPass has a setting you have to enable in order to force it to respect the autofill=off stuff. For anyone needing this info go to LastPass Preferences > Advanced > Respect AutoComplete=off: allow websites to disable AutoFill.
EDIT: You have to add the tag data-lpignore="true" to the code that myworksdesign provided. I added it to the last section as shown below. Now LastPass no longer autofills the Username or Password forms on my account pages but it still allows me to log into the back end by clicking the LastPass icon in the fields if needed.
[co]
If I paste in the code to that file I created and then browse back to my WHMCS back end the password and Username fields are still being filled in... See attached image if needed.
If I paste in the code to that file I created and then browse back to my WHMCS back end the password and Username fields are still being filled in...
http://scrn.myworks.software/IPYe4F
data-lpignore="true"https://lastpass.com/support.php?cmd=showfaq&id=10512
Having invoices not go out is a huge lass of business.
It made me realise that it was lastpass autofilling much more than just Email and Password (which is weird as that's all the info it should keep). Name Fields and Description (eg Support Departments) were being autofilled.
Once you Edit the LastPass Advanced Settings for the site and check "Disable Autofill" then WHMCS works fine.
I was completely losing my mind and wanted to abandon WHMCS but in the end it was LastPass and a simple fix :)
Thank you! Thank you! Thank you!