we send our username, not our nick when we change password
This commit is contained in:
parent
60d8a8e9b3
commit
89d00ada0d
|
@ -2063,10 +2063,11 @@ class Connection:
|
||||||
return keys
|
return keys
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def change_password(self, password, username):
|
def change_password(self, password):
|
||||||
if not self.connection:
|
if not self.connection:
|
||||||
return
|
return
|
||||||
hostname = gajim.config.get_per('accounts', self.name, 'hostname')
|
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)
|
iq = common.xmpp.Iq(typ = 'set', to = hostname)
|
||||||
q = iq.setTag(common.xmpp.NS_REGISTER + ' query')
|
q = iq.setTag(common.xmpp.NS_REGISTER + ' query')
|
||||||
q.setTagData('username',username)
|
q.setTagData('username',username)
|
||||||
|
|
|
@ -1382,8 +1382,7 @@ _('To change the account name, you must be disconnected.')).get_response()
|
||||||
|
|
||||||
new_password = dialog.run()
|
new_password = dialog.run()
|
||||||
if new_password != -1:
|
if new_password != -1:
|
||||||
gajim.connections[self.account].change_password(new_password, \
|
gajim.connections[self.account].change_password(new_password)
|
||||||
gajim.nicks[self.account])
|
|
||||||
if self.xml.get_widget('save_password_checkbutton').get_active():
|
if self.xml.get_widget('save_password_checkbutton').get_active():
|
||||||
self.xml.get_widget('password_entry').set_text(new_password)
|
self.xml.get_widget('password_entry').set_text(new_password)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue