mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-22 11:20:42 +08:00
chore: removed the the login attempt log commented line to makes the code cleaner and more focused
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user