0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-16 22:20:11 +01:00
forgejo/services
caicandong 491cc06ffe
Fix the error message when the token is incorrect ()
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   
related 

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-07-11 10:04:28 +08:00
..
actions For API attachments, use API URL () 2023-07-10 09:31:19 +00:00
agit Use the type RefName for all the needed places and fix pull mirror sync bugs () 2023-05-26 01:04:48 +00:00
asymkey
attachment
auth Fix the error message when the token is incorrect () 2023-07-11 10:04:28 +08:00
automerge
context
convert For API attachments, use API URL () 2023-07-10 09:31:19 +00:00
cron
externalaccount
forms Less naked returns () 2023-07-07 05:31:56 +00:00
gitdiff Less naked returns () 2023-07-07 05:31:56 +00:00
issue Less naked returns () 2023-07-07 05:31:56 +00:00
lfs
mailer Replace interface{} with any () 2023-07-04 18:36:08 +00:00
markup
migrations Replace interface{} with any () 2023-07-04 18:36:08 +00:00
mirror Sync branches when mirroring () 2023-07-06 13:18:37 +02:00
org
packages Replace interface{} with any () 2023-07-04 18:36:08 +00:00
pull Avoid amending the Rebase and Fast-forward merge if there is no message template () 2023-07-10 10:12:50 +02:00
release Less naked returns () 2023-07-07 05:31:56 +00:00
repository
task Update tool dependencies, lock govulncheck and actionlint () 2023-07-09 11:58:06 +00:00
user Refactor rename user and rename organization () 2023-05-21 23:13:47 +08:00
webhook For API attachments, use API URL () 2023-07-10 09:31:19 +00:00
wiki