From 4e56ae88d6bb1a98b164ae1d7b8f03b8fd16e1b5 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 18 Aug 2020 22:36:58 +0100 Subject: [PATCH] Fix: remove debug statements when logging in with incorrect password --- internal/route/auth.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/route/auth.go b/internal/route/auth.go index de3390f..e144a45 100644 --- a/internal/route/auth.go +++ b/internal/route/auth.go @@ -171,9 +171,8 @@ func (h *TaskcafeHandler) LoginHandler(w http.ResponseWriter, r *http.Request) { err = bcrypt.CompareHashAndPassword([]byte(user.PasswordHash), []byte(requestData.Password)) if err != nil { log.WithFields(log.Fields{ - "password": requestData.Password, - "password_hash": user.PasswordHash, - }).Warn("password incorrect") + "username": requestData.Username, + }).Warn("password incorrect for user") w.WriteHeader(http.StatusUnauthorized) return }