mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-21 01:14:31 +08:00
491cc06ffe
we refactored `userIDFromToken` for the token parsing part into a new function `parseToken`. `parseToken` returns the string `token` from request, and a boolean `ok` representing whether the token exists or not. So we can distinguish between token non-existence and token inconsistency in the `verfity` function, thus solving the problem of no proper error message when the token is inconsistent. close #24439 related #22119 --------- Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: Giteabot <teabot@gitea.io> |
||
---|---|---|
.. | ||
source | ||
auth_test.go | ||
auth.go | ||
basic.go | ||
group.go | ||
httpsign.go | ||
interface.go | ||
middleware.go | ||
oauth2.go | ||
reverseproxy.go | ||
session.go | ||
signin.go | ||
source.go | ||
sspi_windows.go | ||
sync.go |