Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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.