lib/clarion/app.rb in clarion-0.2.0 vs lib/clarion/app.rb in clarion-0.2.1

- old
+ new

@@ -168,10 +168,10 @@ key = registrator.register!(reg[:challenges], data[:response]) key.name = data[:name] session[:regis].reject! { |_| _[:id] == data[:reg_id] } - {ok: true, encrypted_key: key.to_encrypted_json(public_key, :all)}.to_json + {ok: true, name: key.name, encrypted_key: key.to_encrypted_json(public_key, :all)}.to_json end post '/ui/verify/:id' do content_type :json unless data[:req_id] && data[:response]