ffpass
ffpass copied to clipboard
Skip duplicates & add --overwrite
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.
Unit Test Results
ββ1 filesβ Β±0ββββ1 suitesβ Β±0βββ0s :stopwatch: Β±0s 10 tests Β±0ββ10 :heavy_check_mark: Β±0ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit 8f828557.βΒ± Comparison against base commit 12d6fbae.