Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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

搜尋 Mozilla 技術支援網站

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

了解更多

Firefox enters saved password in the username field

  • 7 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 coffent

more options

I'm trying to use the Firefox "Logins and Passwords" saving option. With one website, when I open it to the login page, Firefox enters the password in the username field and nothing in the password field. I've checked "Saved Logins..." and verified that the information is entered correctly. Why doesn't it work?

I'm trying to use the Firefox "Logins and Passwords" saving option. With one website, when I open it to the login page, Firefox enters the password in the username field and nothing in the password field. I've checked "Saved Logins..." and verified that the information is entered correctly. Why doesn't it work?

被選擇的解決方法

For me it is this:

USERNAME:
<input class="aui-field-input aui-field-input-text" id="_ParticipantLogon20_WAR_ahcommonauthportlet_userId" name="_ParticipantLogon20_WAR_ahcommonauthportlet_userId" placeholder="xxx" type="password" value="">

PASSWORD:
<input class="aui-field-input aui-field-input-text" id="_ParticipantLogon20_WAR_ahcommonauthportlet_password" name="_ParticipantLogon20_WAR_ahcommonauthportlet_password" placeholder="xxx" type="password" value="">

The difference is that you have an extra class name "aui-text-placeholder" and that both have type="text", so it looks that in your case JavaScript has modified the form. I get bullets if I type in either field and I assume that you see plain text visible. 從原來的回覆中察看解決方案 👍 1

所有回覆 (7)

more options

You can try to remove this entry in Lockwise and manually recreate it via "Create New Login".

Firefox wouldn't normally enter the password in a username field unless it is stored as saved from data.

You can use these steps to remove saved items from an autocomplete drop-down list.

  1. click the (empty) input field on the web page to open the drop-down list
  2. highlight an entry in the drop-down list with cursor Down key
    do not click the mouse or press the Enter key
  3. press Shift+Delete (68+) or Delete to delete the highlighted entry

Note that hovering with the mouse doesn't work.

Can you possibly post a link to this login page ?

more options

Thanks. I did as you suggested, and the next time I (manually) entered my username and password in the designated fields and logged in, Firefox asked whether I wanted to save "No user name" in the name field and the (correct) password in the password field. I entered my username to replace "No user name" and clicked Save. Once again, when I accessed the site, Firefox put my password in the username field and nothing in the password field. I also tried leaving "No user name" as the username, with the same result. (My guess now is that the website has not been configured correctly.)

(I sent this reply along with a link to the problem website to you privately yesterday as I'm a little reluctant to post the website on a public site such as this.)

more options

Both username and password input field have type="password" and that is why Firefox fills the password in the username field and assumes that there is no username present (that field should have type="text").
u can verify this if you right-click either field and open the Inspector (Inspect Element).

A possible workaround is to create the login manually on the Lockwise page and create a login block exception to prevent Firefox from asking to update.

  • Options/Preferences -> Privacy & Security: Logins and Passwords: Exceptions

You will still have to type the username, but you should be able to fill the password via the right-click context menu (I see Fill Password for both fields)

more options

You would have to disable autofill to prevent Firefox from filling the password in the username field.

  • Options/Preferences -> Privacy & Security: Logins and Passwords: Autofill logins and passwords
more options

Thanks for the information. I did as you suggested and used "Inspect Element" for both fields. Here are the results:

USER ID <input class="aui-field-input aui-field-input-text aui-text-placeholder" id="_ParticipantLogon20_WAR_ahcommonauthportlet_userId" name="_ParticipantLogon20_WAR_ahcommonauthportlet_userId" placeholder="xxx" type="text" value="">

PASSWORD <input class="aui-field-input aui-field-input-text aui-text-placeholder" id="_ParticipantLogon20_WAR_ahcommonauthportlet_password" name="_ParticipantLogon20_WAR_ahcommonauthportlet_password" placeholder="xxx" type="text" value="">

As you suggested, they both have the same type; however the type seems to be "text" rather than "password" as I think you said. It probably doesn't make much difference, but I just wanted to be sure I understood you correctly.

Do you think this was a mistake by the web page designer, or is it something that is done deliberately to prevent users from automatically entering data?

more options

選擇的解決方法

For me it is this:

USERNAME:
<input class="aui-field-input aui-field-input-text" id="_ParticipantLogon20_WAR_ahcommonauthportlet_userId" name="_ParticipantLogon20_WAR_ahcommonauthportlet_userId" placeholder="xxx" type="password" value="">

PASSWORD:
<input class="aui-field-input aui-field-input-text" id="_ParticipantLogon20_WAR_ahcommonauthportlet_password" name="_ParticipantLogon20_WAR_ahcommonauthportlet_password" placeholder="xxx" type="password" value="">

The difference is that you have an extra class name "aui-text-placeholder" and that both have type="text", so it looks that in your case JavaScript has modified the form. I get bullets if I type in either field and I assume that you see plain text visible.

由 cor-el 於 修改

more options

Yes, I get plain text. I didn't know that Javascript modified forms like that. In any case, it's getting more complex than I think I want to go, so thanks for your help; I'll just keep entering the information manually for that website.