metion account name in fingerprint changed dialog. Fixes $4735
This commit is contained in:
parent
2dec19d34f
commit
8603712990
|
@ -2022,10 +2022,11 @@ class Interface:
|
||||||
gajim.connections[account].disconnect(on_purpose=True)
|
gajim.connections[account].disconnect(on_purpose=True)
|
||||||
self.handle_event_status(account, 'offline')
|
self.handle_event_status(account, 'offline')
|
||||||
pritext = _('SSL certificate error')
|
pritext = _('SSL certificate error')
|
||||||
sectext = _('It seems the SSL certificate has changed or your connection '
|
sectext = _('It seems the SSL certificate of account %(account)s has '
|
||||||
'is being hacked.\nOld fingerprint: %(old)s\nNew fingerprint: %(new)s'
|
'changed or your connection is being hacked.\nOld fingerprint: %(old)s'
|
||||||
'\n\nDo you still want to connect and update the fingerprint of the '
|
'\nNew fingerprint: %(new)s\n\nDo you still want to connect and update'
|
||||||
'certificate?') % {'old': gajim.config.get_per('accounts', account,
|
' the fingerprint of the certificate?') % {'account': account,
|
||||||
|
'old': gajim.config.get_per('accounts', account,
|
||||||
'ssl_fingerprint_sha1'), 'new': data[0]}
|
'ssl_fingerprint_sha1'), 'new': data[0]}
|
||||||
if 'fingerprint_error' in self.instances[account]['online_dialog']:
|
if 'fingerprint_error' in self.instances[account]['online_dialog']:
|
||||||
self.instances[account]['online_dialog']['fingerprint_error'].destroy()
|
self.instances[account]['online_dialog']['fingerprint_error'].destroy()
|
||||||
|
|
Loading…
Reference in New Issue