1
0
mirror of https://github.com/go-gitea/gitea synced 2025-02-18 05:27:04 +01:00
Giteabot ee87b4e18c
Fix the error message when the token is incorrect () ()
Backport  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   
related 

Co-authored-by: caicandong <50507092+CaiCandong@users.noreply.github.com>
Co-authored-by: Jason Song <i@wolfogre.com>
2023-07-12 11:29:30 +02:00
..
2023-02-05 18:12:31 +08:00
2023-04-27 17:49:50 -05:00