diff --git a/app/models/user.rb b/app/models/user.rb index cab054b64..94b18788a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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]}"