Fix: remove debug statements when logging in with incorrect password
This commit is contained in:
		@@ -171,9 +171,8 @@ func (h *TaskcafeHandler) LoginHandler(w http.ResponseWriter, r *http.Request) {
 | 
				
			|||||||
	err = bcrypt.CompareHashAndPassword([]byte(user.PasswordHash), []byte(requestData.Password))
 | 
						err = bcrypt.CompareHashAndPassword([]byte(user.PasswordHash), []byte(requestData.Password))
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		log.WithFields(log.Fields{
 | 
							log.WithFields(log.Fields{
 | 
				
			||||||
			"password":      requestData.Password,
 | 
					            "username": requestData.Username,
 | 
				
			||||||
			"password_hash": user.PasswordHash,
 | 
					        }).Warn("password incorrect for user")
 | 
				
			||||||
		}).Warn("password incorrect")
 | 
					 | 
				
			||||||
		w.WriteHeader(http.StatusUnauthorized)
 | 
							w.WriteHeader(http.StatusUnauthorized)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user