mirror of https://github.com/tidwall/tile38.git
http auth fixes #36
This commit is contained in:
parent
1d427c849f
commit
7b8c2dae85
|
@ -311,12 +311,13 @@ func (c *Controller) handleInputCommand(conn *server.Conn, msg *server.Message,
|
|||
return writeErr(errors.New("invalid password"))
|
||||
}
|
||||
conn.Authenticated = true
|
||||
return writeOutput(server.OKMessage(msg, start))
|
||||
if msg.ConnType != server.HTTP {
|
||||
return writeOutput(server.OKMessage(msg, start))
|
||||
}
|
||||
} else if msg.Command == "auth" {
|
||||
return writeErr(errors.New("invalid password"))
|
||||
}
|
||||
}
|
||||
|
||||
// choose the locking strategy
|
||||
switch msg.Command {
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue