Skip to content

Commit e8ede4b

Browse files
authored
Merge pull request #5 from EightCubed/GHI-1
fix: GHI-1: Removed clear text logging of password
2 parents 0882857 + c03349c commit e8ede4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/handlers/user_post.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (h *SocialMediaHandler) PostUser(w http.ResponseWriter, r *http.Request) {
2828
}
2929

3030
if body.Username == "" || body.Email == "" || body.Password == "" {
31-
log.Printf("[ERROR] Missing required fields: Username: %v, Email: %v, Password: %v", body.Username, body.Email, body.Password)
31+
log.Printf("[ERROR] Missing required fields")
3232
http.Error(w, "Missing required fields", http.StatusBadRequest)
3333
return
3434
}

0 commit comments

Comments
 (0)