rename instance to config,

simplify resource-chart code
This commit is contained in:
2025-04-02 20:39:38 +00:00
parent add58d849e
commit bd0387976f
12 changed files with 14 additions and 18 deletions

View File

@@ -185,7 +185,7 @@ func GetAuth(c *gin.Context) (string, string, string, error) {
token, errToken := c.Cookie("PVEAuthCookie")
csrf, errCSRF := c.Cookie("CSRFPreventionToken")
if errUsername != nil || errAuth != nil || errToken != nil || errCSRF != nil {
return "", "", "", fmt.Errorf("auth: %s, token: %s, csrf: %s", errAuth, errToken, errCSRF)
return "", "", "", fmt.Errorf("error occured getting user cookies: (auth: %s, token: %s, csrf: %s)", errAuth, errToken, errCSRF)
} else {
return username, token, csrf, nil
}