Skip to content

Commit

Permalink
Merge pull request #156 from jumpserver/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
LeeEirc authored Nov 20, 2019
2 parents ceb51ae + a4cfa7c commit 82b4166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func checkAuth(ctx ssh.Context, password, publicKey string) (res ssh.AuthResult)
logger.Infof("%s %s for %s from %s", action, authMethod, username, remoteAddr)
return
}
if resp != nil {
if resp != nil && resp.User != nil {
switch resp.User.OTPLevel {
case 0:
res = ssh.AuthSuccessful
Expand Down

0 comments on commit 82b4166

Please sign in to comment.