jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
592 stars 49 forks source link

Adds Passport type to skip in 1P importer #48

Closed gergles closed 6 years ago

gergles commented 6 years ago

The "Passport" type in a 1pif file makes the import script abort. It should just skip it, like it does for bank accounts.

tools/1password_import.rb:204:in `block in <main>': unimplemented: "wallet.government.Passport" (RuntimeError)
    from tools/1password_import.rb:125:in `each'
    from tools/1password_import.rb:125:in `<main>'

This PR just makes it skip Passports like the other data types that don't have analogs in Bitwarden.