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"))
|
return writeErr(errors.New("invalid password"))
|
||||||
}
|
}
|
||||||
conn.Authenticated = true
|
conn.Authenticated = true
|
||||||
|
if msg.ConnType != server.HTTP {
|
||||||
return writeOutput(server.OKMessage(msg, start))
|
return writeOutput(server.OKMessage(msg, start))
|
||||||
|
}
|
||||||
} else if msg.Command == "auth" {
|
} else if msg.Command == "auth" {
|
||||||
return writeErr(errors.New("invalid password"))
|
return writeErr(errors.New("invalid password"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// choose the locking strategy
|
// choose the locking strategy
|
||||||
switch msg.Command {
|
switch msg.Command {
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue