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> |
1 year ago | |
---|---|---|
.. | ||
actions | 1 year ago | |
agit | 1 year ago | |
asymkey | 1 year ago | |
attachment | 1 year ago | |
auth | 1 year ago | |
automerge | 1 year ago | |
context | 1 year ago | |
convert | 1 year ago | |
cron | 1 year ago | |
externalaccount | 1 year ago | |
forms | 1 year ago | |
gitdiff | 1 year ago | |
issue | 1 year ago | |
lfs | 1 year ago | |
mailer | 1 year ago | |
markup | 1 year ago | |
migrations | 1 year ago | |
mirror | 1 year ago | |
org | 1 year ago | |
packages | 1 year ago | |
pull | 1 year ago | |
release | 1 year ago | |
repository | 1 year ago | |
task | 1 year ago | |
user | 1 year ago | |
webhook | 1 year ago | |
wiki | 1 year ago |