fix: correct logging variable from err to ipErr in AuthApi

This commit is contained in:
brinkcoder 2025-04-25 22:37:16 +02:00
parent 1309d09aee
commit 61f0521072

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
} }