chore: removed the the login attempt log commented line to makes the code cleaner and more focused

This commit is contained in:
炯轩
2024-10-12 14:38:42 +02:00
committed by Henrique Dias
parent 74b514c877
commit a698e31cb4
-2
View File
@@ -89,8 +89,6 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Gets the correct user for this request.
username, password, ok := r.BasicAuth()
// Removed the login attempt log to reduce log volume and focus on final verification results
// zap.L().Info("login attempt", zap.String("username", username), zap.String("remote_address", remoteAddr))
if !ok {
http.Error(w, "Not authorized", http.StatusUnauthorized)
return