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.
forgejo/tests
caicandong 491cc06ffe
Fix the error message when the token is incorrect (#25701)
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
..
e2e Refactor web package and context package (#25298) 1 year ago
fuzz Move fuzz tests into tests/fuzz (#22376) 2 years ago
gitea-lfs-meta Test views of LFS files (#22196) 2 years ago
gitea-repositories-meta Fix bug of branches API with tests (#25578) 1 year ago
integration Fix the error message when the token is incorrect (#25701) 1 year ago
mssql.ini.tmpl Implement actions artifacts (#22738) 1 year ago
mysql.ini.tmpl Implement actions artifacts (#22738) 1 year ago
mysql8.ini.tmpl Implement actions artifacts (#22738) 1 year ago
pgsql.ini.tmpl Implement actions artifacts (#22738) 1 year ago
sqlite.ini.tmpl Implement actions artifacts (#22738) 1 year ago
test_utils.go Replace `interface{}` with `any` (#25686) 1 year ago