mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 05:03:07 +01:00
irclib: Abort authentication when server fails SCRAM challenge
Will be tested by irctest: https://github.com/progval/irctest/pull/179
This commit is contained in:
parent
e9a29e9159
commit
77805ff36e
@ -2010,6 +2010,8 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
|||||||
except scram.BadSuccessException as e:
|
except scram.BadSuccessException as e:
|
||||||
log.warning('%s: SASL authentication failed with SCRAM error: %e',
|
log.warning('%s: SASL authentication failed with SCRAM error: %e',
|
||||||
self.network, e)
|
self.network, e)
|
||||||
|
self.sendMsg(ircmsgs.IrcMsg(command='AUTHENTICATE',
|
||||||
|
args=('*',)))
|
||||||
self.tryNextSaslMechanism(msg)
|
self.tryNextSaslMechanism(msg)
|
||||||
else:
|
else:
|
||||||
self.sendSaslString(b'')
|
self.sendSaslString(b'')
|
||||||
|
Loading…
Reference in New Issue
Block a user