Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

import passwords from dashlane

  • 3 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi chris.goyette1865

more options

I exported my passwords from dashlane to a csv. The only information in the csv is url, domain, username, password. It is missing the form action, time stamps, and guid. Importing from file did not work. I re-ordered the info so it was in "url","username","password","httpRealm","formActionOrigin","guid","timeCreated","timeLastUsed","timePasswordChanged" format (once again, missing the last 5 fields). I made some fake passwords in firefox to see the format. form action was blank anyways. I tried copying the time info fields (from the fake passwords I made) to my csv, still didn't work. I think I probably need a guid? I tried leaving it blank, didn't work. I tried putting in "unk", didn't work.


I give up, please, how do I import passwords from Dashlane? I can export in json, excel, and csv.

I exported my passwords from dashlane to a csv. The only information in the csv is url, domain, username, password. It is missing the form action, time stamps, and guid. Importing from file did not work. I re-ordered the info so it was in "url","username","password","httpRealm","formActionOrigin","guid","timeCreated","timeLastUsed","timePasswordChanged" format (once again, missing the last 5 fields). I made some fake passwords in firefox to see the format. form action was blank anyways. I tried copying the time info fields (from the fake passwords I made) to my csv, still didn't work. I think I probably need a guid? I tried leaving it blank, didn't work. I tried putting in "unk", didn't work. I give up, please, how do I import passwords from Dashlane? I can export in json, excel, and csv.

Giải pháp được chọn

I think that origin (url) and username and password should be sufficient.

Are there errors reported in the Browser Console ? You can temporarily set signon.debug = true on the about:config page.

Enable the command line in the Browser Console:

The JSON file should have this format: Array of JSON login records separated by commas [{login1},{login2}] with at least username and password and hostname key:value pairs.

  • [{"username":"xxx","password":"xxx","hostname":"https://xxx"}]

/* export logins in JSON format */
var lg = prompt("Logins",JSON.stringify(Services.logins.getAllLogins()));
/* import logins in JSON format */
if (lg = prompt("Logins JSON: [{},{}]","?")){
lg = JSON.parse(lg);
try {/*[60+]*/
 for(i=0;LG=lg[i];i++){if(!LG.origin){LG.origin = LG.hostname}}
 ChromeUtils.import("resource://gre/modules/LoginHelper.jsm");
 LoginHelper.maybeImportLogins(lg);
} catch(e){console.log(e);}
}
Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (3)

more options

help please? mozilla, where you at?

more options

Giải pháp được chọn

I think that origin (url) and username and password should be sufficient.

Are there errors reported in the Browser Console ? You can temporarily set signon.debug = true on the about:config page.

Enable the command line in the Browser Console:

The JSON file should have this format: Array of JSON login records separated by commas [{login1},{login2}] with at least username and password and hostname key:value pairs.

  • [{"username":"xxx","password":"xxx","hostname":"https://xxx"}]

/* export logins in JSON format */
var lg = prompt("Logins",JSON.stringify(Services.logins.getAllLogins()));
/* import logins in JSON format */
if (lg = prompt("Logins JSON: [{},{}]","?")){
lg = JSON.parse(lg);
try {/*[60+]*/
 for(i=0;LG=lg[i];i++){if(!LG.origin){LG.origin = LG.hostname}}
 ChromeUtils.import("resource://gre/modules/LoginHelper.jsm");
 LoginHelper.maybeImportLogins(lg);
} catch(e){console.log(e);}
}
more options

I dont see an option to import json files, just csv. It took a bit of tweaking and figuring of all the "got-yahs" but I was able to write a script to convert dashlane json to make-firefox-happy csv. The output console was happy or I never would have realized that the urls needed to start with http

import json

header = "\"url\",\"username\",\"password\",\"httpRealm\",\"formActionOrigin\",\"guid\",\"timeCreated\",\"timeLastUsed\",\"timePasswordChanged\"\n" print(header)

f = open("<path to output file.csv>","w")

f.write(header)

uname = "" pswd = "" outputstr = ""

with open('<path to json input file>') as json_file:

   data = json.load(json_file)
   for p in data['AUTHENTIFIANT']:
       dom = "https://"
       if p['domain'] or p['title']:
           dom += p['domain'] if p['domain'] else p['title']
           if p['email']:
               uname = p['email']
           elif p['login']:
               uname = p['login']
           else:
               print("error: login: " + p['domain'])
           if p['password']:
               pswd = p['password']
           else:
               print("error: password: " + p['domain'])
       else:
           print("error: domain")
       outputstr = '\"' + dom + '\",' + '\"' + uname + '\",' + '\"' + pswd + '\",' + ',\"\",,,,' +  '\n'
       f.write(outputstr)

f.close()