mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 08:52:18 +08:00
fix cannot set cookie when response is written
This commit is contained in:
@ -62,8 +62,6 @@ func GetContextHandler(ats *auth.UserAuthTokenService) macaron.Handler {
|
|||||||
|
|
||||||
c.Map(ctx)
|
c.Map(ctx)
|
||||||
|
|
||||||
c.Next()
|
|
||||||
|
|
||||||
//if signed in with token
|
//if signed in with token
|
||||||
rotated, err := ats.RefreshToken(ctx.UserToken, ctx.RemoteAddr(), ctx.Req.UserAgent())
|
rotated, err := ats.RefreshToken(ctx.UserToken, ctx.RemoteAddr(), ctx.Req.UserAgent())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user