middleware fix

This commit is contained in:
Marcus Efraimsson 2019-02-06 08:45:01 +01:00
parent d8658a765c
commit 44275d9660
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A

View File

@ -178,6 +178,7 @@ func initContextWithToken(authTokenService authtoken.UserAuthTokenService, ctx *
token, err := authTokenService.LookupToken(rawToken)
if err != nil {
ctx.Logger.Error("failed to look up user based on cookie", "error", err)
WriteSessionCookie(ctx, "", -1)
return false
}