diff options
author | Franz Schmidt <valsatize@gmail.com> | 2016-06-27 11:02:39 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-06-27 17:02:39 +0800 |
commit | 8b35c194ecf5ff44a0b80595a5631e76e14fd0fb (patch) | |
tree | 2efcf19f367848d317ae20685db26ae352b2f2c4 /modules/auth | |
parent | ac05f886413bb5f2ca97b9af8ad5209619c138c0 (diff) | |
download | gitea-8b35c194ecf5ff44a0b80595a5631e76e14fd0fb.tar.gz gitea-8b35c194ecf5ff44a0b80595a5631e76e14fd0fb.zip |
Fixes #3110 (#3136)
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |