mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
middleware fix
This commit is contained in:
parent
d8658a765c
commit
44275d9660
@ -178,6 +178,7 @@ func initContextWithToken(authTokenService authtoken.UserAuthTokenService, ctx *
|
|||||||
token, err := authTokenService.LookupToken(rawToken)
|
token, err := authTokenService.LookupToken(rawToken)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Logger.Error("failed to look up user based on cookie", "error", err)
|
ctx.Logger.Error("failed to look up user based on cookie", "error", err)
|
||||||
|
WriteSessionCookie(ctx, "", -1)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user