mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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> |
2 years ago | |
---|---|---|
.. | ||
source | 2 years ago | |
auth.go | 2 years ago | |
auth_test.go | 2 years ago | |
basic.go | 2 years ago | |
group.go | 2 years ago | |
httpsign.go | 2 years ago | |
interface.go | 2 years ago | |
middleware.go | 2 years ago | |
oauth2.go | 2 years ago | |
reverseproxy.go | 2 years ago | |
session.go | 2 years ago | |
signin.go | 2 years ago | |
source.go | 2 years ago | |
sspi_windows.go | 2 years ago | |
sync.go | 2 years ago |