fix cannot set cookie when response is written

This commit is contained in:
Marcus Efraimsson 2019-01-17 20:27:53 +01:00
parent 8b3fe41b0a
commit 97c7963f17
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A

View File

@ -62,8 +62,6 @@ func GetContextHandler(ats *auth.UserAuthTokenService) macaron.Handler {
c.Map(ctx)
c.Next()
//if signed in with token
rotated, err := ats.RefreshToken(ctx.UserToken, ctx.RemoteAddr(), ctx.Req.UserAgent())
if err != nil {