Give reason why session validation failed
This commit is contained in:
parent
5faf1825a6
commit
eea1e2e517
@ -92,7 +92,7 @@ func NewWithConfig(config Config) echo.MiddlewareFunc {
|
||||
|
||||
data, err := verifySession(util.DefaultContext[interface{}](c, "session", nil), path, referrer)
|
||||
if err != nil {
|
||||
return api.Err(http.StatusForbidden, "", "invalid session data")
|
||||
return api.Err(http.StatusForbidden, "", "verifying session failed: %s", err.Error())
|
||||
}
|
||||
|
||||
data["name"] = ctxuser
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user