|
@ -172,10 +172,15 @@ class MumbleUser( models.Model ): |
|
|
|
|
|
|
|
|
# Update user's registration |
|
|
# Update user's registration |
|
|
if self.password: |
|
|
if self.password: |
|
|
|
|
|
if self.owner: |
|
|
|
|
|
email = self.owner.email |
|
|
|
|
|
else: |
|
|
|
|
|
email = settings.DEFAULT_FROM_EMAIL; |
|
|
|
|
|
|
|
|
murmur.setRegistration( |
|
|
murmur.setRegistration( |
|
|
dbus.Int32( self.mumbleid ), |
|
|
dbus.Int32( self.mumbleid ), |
|
|
dbus.String( self.name ), |
|
|
dbus.String( self.name ), |
|
|
dbus.String( self.owner.email if self.owner else settings.DEFAULT_FROM_EMAIL ), |
|
|
|
|
|
|
|
|
dbus.String( email ), |
|
|
dbus.String( self.password ) |
|
|
dbus.String( self.password ) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|