mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(http): improve invalid login handling (#597)
* feat(http): improve invalid login handling * fix(http): do not log password
This commit is contained in:
parent
9c16c7a4a1
commit
6b1490726f
2 changed files with 3 additions and 3 deletions
|
@ -75,7 +75,7 @@ func (h authHandler) login(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
_, err := h.service.Login(ctx, data.Username, data.Password)
|
||||
if err != nil {
|
||||
h.log.Error().Err(err).Msgf("invalid login [%s] from: %s", ReadUserIP(r))
|
||||
h.log.Error().Err(err).Msgf("Auth: Failed login attempt username: [%s] ip: %s", data.Username, ReadUserIP(r))
|
||||
h.encoder.StatusResponse(ctx, w, nil, http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue