搜尋 Mozilla 技術支援網站

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

了解更多

editing passwords

  • 6 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 user700204

more options

So I have this one website that I have a login name and password for. But Firefox NEVER asks to remember that login. I log in manually repeatedly, and I'm not offered to save it, and It isn't found in "Saved Logins". I'd sure like to have Firefox remember that login. How can I do that? It is my understanding that a website can be set up to NOT let the browser login saving work. Maybe that's what's going on here? But is there some way to force that login to be saved? Or some way to edit that information into the "Saved Logins" file?

So I have this one website that I have a login name and password for. But Firefox NEVER asks to remember that login. I log in manually repeatedly, and I'm not offered to save it, and It isn't found in "Saved Logins". I'd sure like to have Firefox remember that login. How can I do that? It is my understanding that a website can be set up to NOT let the browser login saving work. Maybe that's what's going on here? But is there some way to force that login to be saved? Or some way to edit that information into the "Saved Logins" file?

所有回覆 (6)

more options

Does it already have a password listed?

Type about:preferences#security<enter> in the address bar. Look under Logins,

Note: For Firefox 56+ its; about:preferences#privacy Look under Forms & Passwords +++++++++++++++++++++++++++++++ Turn on Remember Logins. To check the passwords you have listed, press Saved Logins.

Press the Exceptions button and see what's inside.

more options

Thanks. But I don't have any exceptions listed, and as I said I know how to review my saved logins. The issue is that I don't know how to edit those saved logins, or add to them.

more options

Some websites do not use a form, but only use two input fields and a submit button to submit these fields via AJAX or otherwise use a setup that Firefox doesn't recognize as a login form.

In theory you could try to save a name and password on another website and then edit this record in logins.json and modify hostname and usernameField and passwordField. You can double-click name and password field in the Password Manager or use the right-click context menu to edit these fields. I've never done this myself, but at least this way you have the username and password saved in the Password Manager if Firefox offer to fill. This file is in JSON format, so you need a basic understanding of how this format works and make sure not to break this file. You can set this pref to true to get a log in the Browser Console.

  • signon.debug = true

由 cor-el 於 修改

more options

That's an interesting strategy, and thanks for telling me that logins.json is where those logins are stored. But how do I edit that file? In vi, it comes up as ONE very long line. Certainly a lot of potential for breaking it.

Where in Preferences do I find signon.debug? When I go to about:preferences, I don't see it.

more options

You can inspect and modify prefs on the about:config page. You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.


Yes, the logins.json is one long line without any line breaks although linefeed like used in HTML should work. I've edited the file as a test and added a line break (%0a) after "}," to make each entry {"id":xx start on a new line and that works.

You can test the modified file by opening the file in a Firefox tab and have the builtin JSON viewer handle the file.

more options

Thanks. But "about:config" isn't Preferences. At least not the Preferences you select in the menu button. Good ideas about editing the JSON file. Too bad the JSON viewer isn't a JSON editor!