Bushido::Data.listen("app.claimed") do |event|
  puts "Saving #{Account.first.inspect} with incoming data #{event.inspect}"

  account = Account.first
  account.email = event["data"].try(:[], "email")
  account.save
end

Bushido::Data.listen("app.claimed") do |event|
  puts "Saving #{Account.first.inspect} with incoming data #{event.inspect}"

  account = Account.first
  account.email = event["data"].try(:[], "email")
  account.username = account.email
  account.save
end

Set account.username for the cas lookup
Set account.username for the cas lookup
