From 8b35c194ecf5ff44a0b80595a5631e76e14fd0fb Mon Sep 17 00:00:00 2001 From: Franz Schmidt Date: Mon, 27 Jun 2016 11:02:39 +0200 Subject: Fixes #3110 (#3136) --- modules/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/auth/auth.go b/modules/auth/auth.go index 0c1f2fbdc1..3265b326c6 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -49,7 +49,7 @@ func SignedInID(ctx *macaron.Context, sess session.Store) int64 { if len(tokenSHA) > 0 { t, err := models.GetAccessTokenBySHA(tokenSHA) if err != nil { - if models.IsErrAccessTokenNotExist(err) { + if models.IsErrAccessTokenNotExist(err) || models.IsErrAccessTokenEmpty(err) { log.Error(4, "GetAccessTokenBySHA: %v", err) } return 0 -- cgit v1.2.3