Skip to content

Skip duplicates & add --overwrite#66

Open
moqmar wants to merge 1 commit intolouisabraham:masterfrom
moqmar:master
Open

Skip duplicates & add --overwrite#66
moqmar wants to merge 1 commit intolouisabraham:masterfrom
moqmar:master

Conversation

@moqmar
Copy link

@moqmar moqmar commented Nov 9, 2021

This change handles imports of existing entries correctly and thus solves #36: if the entry is the same (hostname, username and password), it gets skipped. If the password is different (but an entry with the same hostname & username already exists), a warning is issued, unless --overwrite is specified, in which case the entry gets overwritten.

During usual Firefox UI workflow, it's not possible to create an entry with ## in the hostname, which is the reason why I used that as the delimiter. Note that it is possible in Firefox's password manager UI to create two entries with the same username but different passwords, in which case only one of them will get overwritten.

@moqmar moqmar changed the title Skip duplicates & add --overwrite as a solution for #36 Skip duplicates & add --overwrite Nov 9, 2021
@github-actions
Copy link

github-actions bot commented Nov 9, 2021

Unit Test Results

  1 files  ±0    1 suites  ±0   0s ⏱️ ±0s
10 tests ±0  10 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8f82855. ± Comparison against base commit 12d6fba.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments