we can now force to not use SASL for each account in advanced configuration editor
This commit is contained in:
parent
e3ddf04b9b
commit
8a7a399288
|
@ -115,6 +115,7 @@ class Config:
|
||||||
'keyid': [ opt_str, '' ],
|
'keyid': [ opt_str, '' ],
|
||||||
'keyname': [ opt_str, '' ],
|
'keyname': [ opt_str, '' ],
|
||||||
'usetls': [ opt_bool, False ],
|
'usetls': [ opt_bool, False ],
|
||||||
|
'force_nonSASL': [ opt_bool, False ],
|
||||||
'savegpgpass': [ opt_bool, False ],
|
'savegpgpass': [ opt_bool, False ],
|
||||||
'gpgpassword': [ opt_str, '' ],
|
'gpgpassword': [ opt_str, '' ],
|
||||||
'sync_with_global_status': [ opt_bool, True ],
|
'sync_with_global_status': [ opt_bool, True ],
|
||||||
|
|
|
@ -565,7 +565,8 @@ class Connection:
|
||||||
gajim.log.debug('Connected to server')
|
gajim.log.debug('Connected to server')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
auth = con.auth(name, self.password, resource) #FIXME: blocking
|
auth = con.auth(name, self.password, resource,
|
||||||
|
not gajim.config.get_per('accounts', self.name, 'force_nonSASL')) #FIXME: blocking
|
||||||
except IOError: #probably a timeout
|
except IOError: #probably a timeout
|
||||||
self.connected = 0
|
self.connected = 0
|
||||||
self.dispatch('STATUS', 'offline')
|
self.dispatch('STATUS', 'offline')
|
||||||
|
|
Loading…
Reference in New Issue