Skip to content

Commit

Permalink
fix: better logging of password hash
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed Oct 26, 2023
1 parent 3036026 commit 7c887ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func (od *OfflineDatabase) ServeHTTP(w http.ResponseWriter, r *http.Request) {
hash = sha1.Sum([]byte(pw))
}

od.logger.Sugar().Infof("checking password: %v", hash)
od.logger.Sugar().Infof("checking password: %s", hex.EncodeToString(hash[:]))
frequency, err := od.Pwned(hash)
if err != nil {
od.logger.Sugar().Warnf("error checking password: %v", err)
Expand Down

0 comments on commit 7c887ce

Please sign in to comment.