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.
gitea/routers/web/user/setting
Rowan Bohde 1ee59f0fa3
Allow disabling authentication related user features (#31535)
We have some instances that only allow using an external authentication
source for authentication. In this case, users changing their email,
password, or linked OpenID connections will not have any effect, and
we'd like to prevent showing that to them to prevent confusion.

Included in this are several changes to support this:
* A new setting to disable user managed authentication credentials
(email, password & OpenID connections)
* A new setting to disable user managed MFA (2FA codes & WebAuthn)
* Fix an issue where some templates had separate logic for determining
if a feature was disabled since it didn't check the globally disabled
features
* Hide more user setting pages in the navbar when their settings aren't
enabled

---------

Co-authored-by: Kyle D <kdumontnu@gmail.com>
7 months ago
..
security Allow disabling authentication related user features (#31535) 7 months ago
account.go Allow disabling authentication related user features (#31535) 7 months ago
account_test.go Move context from modules to services (#29440) 12 months ago
adopt.go Move context from modules to services (#29440) 12 months ago
applications.go Allow disabling authentication related user features (#31535) 7 months ago
block.go Allow disabling authentication related user features (#31535) 7 months ago
keys.go Allow disabling authentication related user features (#31535) 7 months ago
main_test.go make writing main test easier (#27270) 1 year ago
oauth2.go Move context from modules to services (#29440) 12 months ago
oauth2_common.go Refactor names (#31405) 8 months ago
packages.go Allow disabling authentication related user features (#31535) 7 months ago
profile.go Allow disabling authentication related user features (#31535) 7 months ago
runner.go Move context from modules to services (#29440) 12 months ago
webhooks.go Allow disabling authentication related user features (#31535) 7 months ago