Skip to content

Commit

Permalink
Merge pull request #11415 from YoyinZyc/automated-cherry-pick-of-#114…
Browse files Browse the repository at this point in the history
…13-upstream-release-3.4

Automated cherry pick of #11413 to release-3.4
  • Loading branch information
jingyih authored Dec 2, 2019
2 parents 94e46ba + ae5bd3c commit ac63c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (as *authStore) Authenticate(ctx context.Context, username, password string
return nil, ErrAuthFailed
}

if user.Options.NoPassword {
if user.Options != nil && user.Options.NoPassword {
return nil, ErrAuthFailed
}

Expand Down Expand Up @@ -344,7 +344,7 @@ func (as *authStore) CheckPassword(username, password string) (uint64, error) {
return 0, ErrAuthFailed
}

if user.Options.NoPassword {
if user.Options != nil && user.Options.NoPassword {
return 0, ErrAuthFailed
}

Expand Down

0 comments on commit ac63c2f

Please sign in to comment.