Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip duplicates & add --overwrite #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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