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.

add extra attribute support to keepass importer (#80)

authored by

Dave Eddy and committed by
joshua stein
3080df74 d6f13b8b

+11
+11
tools/keepass_import.rb
··· 146 146 puts "This entry has an attachment - but it won't be converted as rubywarden does not support attachments yet." 147 147 end 148 148 149 + if entry[1].additional_attributes.any? 150 + cdata['Fields'] = [] 151 + entry[1].additional_attributes.each_pair do |k, v| 152 + cdata['Fields'].push( 153 + 'Type' => 0, # 0 = text, 1 = hidden, 2 = boolean 154 + 'Name' => encrypt(k), 155 + 'Value' => encrypt(v) 156 + ) 157 + end 158 + end 159 + 149 160 c.data = cdata.to_json 150 161 151 162 @to_save[c.type] ||= []