]> source.dussan.org Git - gitea.git/commit
Fix inconsistent naming of OAuth 2.0 `ENABLE` setting (#28951)
authorwackbyte <wackbyte@pm.me>
Sun, 28 Jan 2024 12:36:44 +0000 (07:36 -0500)
committerGitHub <noreply@github.com>
Sun, 28 Jan 2024 12:36:44 +0000 (12:36 +0000)
commitd9b3849454e04c1f498c12e29b8c19660cbae328
tree3e0140a7bb21c87c6a8f07248e55ffc2ca9a82a0
parent61f8ca4906c4c51f9e7e9598417a9674556e670a
Fix inconsistent naming of OAuth 2.0 `ENABLE` setting (#28951)

Renames it to `ENABLED` to be consistent with other settings and
deprecates it.

I believe this change is necessary because other setting groups such as
`attachment`, `cors`, `mailer`, etc. have an `ENABLED` setting, but
`oauth2` is the only one with an `ENABLE` setting, which could cause
confusion for users.

This is no longer a breaking change because `ENABLE` has been set as
deprecated and as an alias to `ENABLED`.
custom/conf/app.example.ini
docs/content/administration/config-cheat-sheet.en-us.md
docs/content/administration/config-cheat-sheet.zh-cn.md
modules/setting/oauth2.go
routers/web/user/setting/applications.go
routers/web/web.go