Skip to content

Commit

Permalink
fixup! pam/gdm: Show a sanitized challenge value when printing auth d…
Browse files Browse the repository at this point in the history
…ata in debug mode
  • Loading branch information
3v1n0 committed Oct 3, 2024
1 parent e680d84 commit ccd4e8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pam/internal/gdm/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ func stringifyEventDataFiltered(ed *EventData) string {
}

item := authReq.IsAuthenticatedRequested.GetAuthenticationData().Item
_, ok = item.(*authd.IARequest_AuthenticationData_Challenge)
if !ok {
if _, ok = item.(*authd.IARequest_AuthenticationData_Challenge); !ok {
return ed.String()
}

Expand Down

0 comments on commit ccd4e8f

Please sign in to comment.