From 5e3a4ffa0f4185c328af5837e3301d0300ee8463 Mon Sep 17 00:00:00 2001 From: Sean Grove Date: Mon, 25 Jul 2011 21:21:55 -0700 Subject: [PATCH] Set account.username for the cas lookup --- lib/locomotive/hosting/bushido/hooks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/locomotive/hosting/bushido/hooks.rb b/lib/locomotive/hosting/bushido/hooks.rb index c7832685..db74fe61 100644 --- a/lib/locomotive/hosting/bushido/hooks.rb +++ b/lib/locomotive/hosting/bushido/hooks.rb @@ -3,5 +3,6 @@ Bushido::Data.listen("app.claimed") do |event| account = Account.first account.email = event["data"].try(:[], "email") + account.username = account.email account.save end