gitea/services/auth
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>
..
source Replace `interface{}` with `any` ()
auth.go Fix install page context, make the install page tests really test ()
auth_test.go Implement FSFE REUSE for golang files ()
basic.go Require repo scope for PATs for private repos and basic authentication ()
group.go Fix the error message when the token is incorrect ()
httpsign.go refactor auth interface to return error when verify failure ()
interface.go Refactor web package and context package ()
middleware.go Decouple the different contexts from each other ()
oauth2.go Fix the error message when the token is incorrect ()
reverseproxy.go Do not send "registration success email" for external auth sources ()
session.go refactor auth interface to return error when verify failure ()
signin.go Modify OAuth login ui and fix display name, iconurl related logic ()
source.go Implement FSFE REUSE for golang files ()
sspi_windows.go Refactor web package and context package ()
sync.go Implement FSFE REUSE for golang files ()