Commit 26569a86 authored by Eric's avatar Eric

[update] fix auth checkAuth

parent a83ebf49
......@@ -21,7 +21,7 @@ func checkAuth(ctx ssh.Context, password, publicKey string) (ok bool) {
if password != "" {
authMethod = "password"
}
if user == nil {
if user.Id == "" {
action = "Failed"
} else {
ctx.SetValue(cctx.ContextKeyUser, user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment