gitea/routers/web/user
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
..
setting Allow disabling authentication related user features (#31535) 2024-07-09 17:36:31 +00:00
avatar.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
code.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
home_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
home.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
notification.go Refactor StringsToInt64s (#29967) 2024-03-21 15:07:35 +00:00
package.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
profile.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
search.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
stop_watch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
task.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00