we send our username, not our nick when we change password

This commit is contained in:
Yann Leboulanger 2005-10-30 16:50:05 +00:00
parent 60d8a8e9b3
commit 89d00ada0d
2 changed files with 3 additions and 3 deletions

View File

@ -2063,10 +2063,11 @@ class Connection:
return keys
return None
def change_password(self, password, username):
def change_password(self, password):
if not self.connection:
return
hostname = gajim.config.get_per('accounts', self.name, 'hostname')
username = gajim.config.get_per('accounts', self.name, 'name')
iq = common.xmpp.Iq(typ = 'set', to = hostname)
q = iq.setTag(common.xmpp.NS_REGISTER + ' query')
q.setTagData('username',username)

View File

@ -1382,8 +1382,7 @@ _('To change the account name, you must be disconnected.')).get_response()
new_password = dialog.run()
if new_password != -1:
gajim.connections[self.account].change_password(new_password, \
gajim.nicks[self.account])
gajim.connections[self.account].change_password(new_password)
if self.xml.get_widget('save_password_checkbutton').get_active():
self.xml.get_widget('password_entry').set_text(new_password)