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.
ee87b4e18c
Backport #25701 by @CaiCandong 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: caicandong <50507092+CaiCandong@users.noreply.github.com> Co-authored-by: Jason Song <i@wolfogre.com> |
2 years ago | |
---|---|---|
.. | ||
e2e | 2 years ago | |
fuzz | 2 years ago | |
gitea-lfs-meta | 2 years ago | |
gitea-repositories-meta | 2 years ago | |
integration | 2 years ago | |
mssql.ini.tmpl | 2 years ago | |
mysql.ini.tmpl | 2 years ago | |
mysql8.ini.tmpl | 2 years ago | |
pgsql.ini.tmpl | 2 years ago | |
sqlite.ini.tmpl | 2 years ago | |
test_utils.go | 2 years ago | |
testlogger.go | 2 years ago |