0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 05:32:34 +01:00
gitea/routers/web/auth
wxiaoguang dcd3a63128
Move web JSON functions to web context and simplify code (#26132)
The JSONRedirect/JSONOK/JSONError functions were put into "Base" context
incorrectly, it would cause abuse.

Actually, they are for "web context" only, so, move them to the correct
place.

And by the way, use them to simplify old code: +75 -196
2023-07-26 06:04:01 +00:00
..
2fa.go
auth.go
linkaccount.go
main_test.go
oauth_test.go Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
oauth.go Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
openid.go
password.go
webauthn.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00