fix anonymous login when server has a SSL error. Fixes #7121
This commit is contained in:
parent
8700389d98
commit
5b39679919
|
@ -1333,7 +1333,10 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
msg=_('Connection with account %s has been lost. Retry '
|
msg=_('Connection with account %s has been lost. Retry '
|
||||||
'connecting.') % self.name))
|
'connecting.') % self.name))
|
||||||
return
|
return
|
||||||
name = gajim.config.get_per('accounts', self.name, 'name')
|
if gajim.config.get_per('accounts', self.name, 'anonymous_auth'):
|
||||||
|
name = None
|
||||||
|
else:
|
||||||
|
name = gajim.config.get_per('accounts', self.name, 'name')
|
||||||
self._register_handlers(self.connection, 'ssl')
|
self._register_handlers(self.connection, 'ssl')
|
||||||
self.connection.auth(name, self.password, self.server_resource, 1,
|
self.connection.auth(name, self.password, self.server_resource, 1,
|
||||||
self.__on_auth)
|
self.__on_auth)
|
||||||
|
|
Loading…
Reference in New Issue