为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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.