Add IP address to login errors (#5760)

This commit is contained in:
blaspheme-ship-it
2025-03-25 03:15:10 +01:00
committed by GitHub
parent 2ec264ed62
commit e9a67eb51f

View File

@@ -81,7 +81,7 @@ func handleLoginPost() http.HandlerFunc {
err := manager.GetInstance().SessionStore.Login(w, r)
if err != nil {
// always log the error
logger.Errorf("Error logging in: %v", err)
logger.Errorf("Error logging in: %v from IP: %s", err, r.RemoteAddr)
}
var invalidCredentialsError *session.InvalidCredentialsError