githaven/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>
2024-07-09 17:36:31 +00:00
..
security Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
account_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
account.go Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
adopt.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
applications.go Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
block.go Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
keys.go Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth2_common.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
oauth2.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
packages.go Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
profile.go Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
runner.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
webhooks.go Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00