forked from External/ergo
fix a bug
In the previous commit, the client would receive a failure message but would actually remain logged in after an authzid/authcid mismatch. This was a correctness rather than a security issue, but now it's fixed so that the client never logs in in the first place.
This commit is contained in:
parent
c8ccf94936
commit
33c8b2177e
4 changed files with 28 additions and 19 deletions
|
|
@ -536,7 +536,7 @@ func nsIdentifyHandler(server *Server, client *Client, command string, params []
|
|||
|
||||
// try certfp
|
||||
if !loginSuccessful && client.certfp != "" {
|
||||
err := server.accounts.AuthenticateByCertFP(client)
|
||||
err := server.accounts.AuthenticateByCertFP(client, "")
|
||||
loginSuccessful = (err == nil)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue