mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-29 07:29:31 +01:00
accounts: Release SASL lock after finishing auth
This commit is contained in:
parent
e643c2101f
commit
b33cbd311c
@ -156,12 +156,15 @@ func authenticateHandler(server *Server, client *Client, msg ircmsg.IrcMessage)
|
||||
return false
|
||||
}
|
||||
|
||||
// sasl is being done now by the handler, so we empty the client's vars now
|
||||
// let the SASL handler do its thing
|
||||
exiting := handler(server, client, client.saslMechanism, data)
|
||||
|
||||
// wait 'til SASL is done before emptying the sasl vars
|
||||
client.saslInProgress = false
|
||||
client.saslMechanism = ""
|
||||
client.saslValue = ""
|
||||
|
||||
return handler(server, client, client.saslMechanism, data)
|
||||
return exiting
|
||||
}
|
||||
|
||||
// authPlainHandler parses the SASL PLAIN mechanism.
|
||||
|
Loading…
Reference in New Issue
Block a user