Set account.username for the cas lookup

This commit is contained in:
Sean Grove 2011-07-25 21:21:55 -07:00
parent 09343dd20a
commit 5e3a4ffa0f

View File

@ -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