Merge pull request #384 from brinkcoder/fix/auth-log-iperr

[BUGFIX] correct wrong variable in AuthApi error logging
This commit is contained in:
Jan Eitzinger 2025-04-28 08:51:42 +02:00 committed by GitHub
commit d5c170055f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,7 +331,7 @@ func (auth *Authentication) AuthApi(
ipErr := securedCheck(user, r) ipErr := securedCheck(user, r)
if ipErr != nil { if ipErr != nil {
log.Infof("auth api -> secured check failed: %s", err.Error()) log.Infof("auth api -> secured check failed: %s", ipErr.Error())
onfailure(rw, r, ipErr) onfailure(rw, r, ipErr)
return return
} }