setting the username

This commit is contained in:
ilya 2010-10-08 16:00:58 -07:00
parent ef3e627bed
commit 8e61b438ab

View file

@ -268,6 +268,7 @@ class User
def accept_invitation!( opts = {} )
if self.invited?
self.username = opts[:username]
self.password = opts[:password]
self.password_confirmation = opts[:password_confirmation]
opts[:person][:diaspora_handle] = "#{opts[:username]}@#{APP_CONFIG[:terse_pod_url]}"