1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-03 06:24:26 +00:00
gitea/routers/web/auth
wxiaoguang 2a828e2798
Clarify path param naming (#32969)
In history (from some legacy frameworks), both `:name` and `name` are
supported as path path name, `:name` is an alias to `name`.

To make code consistent, now we should only use `name` but not `:name`.

Also added panic check in related functions to make sure the name won't
be abused in case some downstreams still use them.
2024-12-24 13:47:45 +00:00
..
2fa.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
auth_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
auth.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
linkaccount.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth2_provider.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
oauth_test.go Use user.FullName in Oauth2 id_token response (#32542) 2024-11-18 19:24:17 +08:00
oauth.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
openid.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
password.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
webauthn.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00