Skip to content

Commit

Permalink
fix codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Nov 11, 2023
1 parent 0511f7e commit 0270832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/internal/httphandlers/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (s *httpImpl) ChangePassword(w http.ResponseWriter, r *http.Request) {
}
password, err := sql.HashPassword(newPassword)
if err != nil {
s.sugared.Errorw("error while hashing new password", "user", user, "err", err)
s.sugared.Errorw("error while hashing new password", "user", user.ID, "err", err)
w.WriteHeader(http.StatusInternalServerError)
return
}
Expand All @@ -97,7 +97,7 @@ func (s *httpImpl) ChangePassword(w http.ResponseWriter, r *http.Request) {

err = s.db.UpdateUser(user)
if err != nil {
s.sugared.Errorw("error while updating user", "user", user, "err", err)
s.sugared.Errorw("error while updating user", "user", user.ID, "err", err)
w.WriteHeader(http.StatusInternalServerError)
return
}
Expand Down

0 comments on commit 0270832

Please sign in to comment.