An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

1password_import: cast favorite to a boolean, it can't be null

+1 -1
+1 -1
tools/1password_import.rb
··· 129 129 c = Cipher.new 130 130 c.user_uuid = @u.uuid 131 131 c.type = Cipher::TYPE_LOGIN 132 - c.favorite = (i["openContents"] && i["openContents"]["faveIndex"]) 132 + c.favorite = !!(i["openContents"] && i["openContents"]["faveIndex"]) 133 133 134 134 cdata = { 135 135 "Name" => encrypt(i["title"].blank? ? "--" : i["title"]),