mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 12:43:09 +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:
|
||||
log.warning('%s: SASL authentication failed with SCRAM error: %e',
|
||||
self.network, e)
|
||||
self.sendMsg(ircmsgs.IrcMsg(command='AUTHENTICATE',
|
||||
args=('*',)))
|
||||
self.tryNextSaslMechanism(msg)
|
||||
else:
|
||||
self.sendSaslString(b'')
|
||||
|
Loading…
Reference in New Issue
Block a user