mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-26 05:01:54 +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.
|
// Gets the correct user for this request.
|
||||||
username, password, ok := r.BasicAuth()
|
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 {
|
if !ok {
|
||||||
http.Error(w, "Not authorized", http.StatusUnauthorized)
|
http.Error(w, "Not authorized", http.StatusUnauthorized)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user