為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

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.