Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to designate user password fields so that firefox does not autofill login info into incorrect fields?

  • 3 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I have a website that allows my customers to manage their business. Within, each customer manages their own customers. I have recently built a portal to allow them to give their customers a password to log in and manage their own orders. I am running into a problem where if a user allows Firefox to save their username and password for my domain, on their customer forms if they leave the Password blank for that customer, Firefox autofills that user's password into that field. I am at a loss as to how to stop Firefox from doing this other than disabling autofill on forms on my site completely. Any information would be greatly appreciated.

I have a website that allows my customers to manage their business. Within, each customer manages their own customers. I have recently built a portal to allow them to give their customers a password to log in and manage their own orders. I am running into a problem where if a user allows Firefox to save their username and password for my domain, on their customer forms if they leave the Password blank for that customer, Firefox autofills that user's password into that field. I am at a loss as to how to stop Firefox from doing this other than disabling autofill on forms on my site completely. Any information would be greatly appreciated.

所有回覆 (3)

more options

Firefox apparently can't autofill some fields created by script. This is a complaint we sometimes see here about the Windows Live login form. I'm not sure of the exact requirements to prevent the password manager from working; reading all the comments on this bug gave me a headache: Bug 355063 – Password manager does not work on script-generated forms.

more options

Thanks for the response. I am floating the autocomplete="off" suggestion from that thread by my devs but I am not sure that this will be the solution I need. I may have omitted this from my original question but this only happens after the form is submitted. When loading the form to initially enter customer data the field shows as blank, but after submitting the form, then returning to the record, firefox has filled in the password field with that current user's password.

more options

Another way would be to place the password field on another page (i.e. initially only ask for the name) and ask for the password in another input form or page.