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/models/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>
8 months ago
..
avatar.go Fix duplicate sub-path for avatars (#31365) 9 months ago
avatar_test.go Fix duplicate sub-path for avatars (#31365) 9 months ago
badge.go Add admin API route for managing user's badges (#23106) 1 year ago
block.go Add user blocking (#29028) 1 year ago
email_address.go Refactor sha1 and time-limited code (#31023) 10 months ago
email_address_test.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 1 year ago
error.go Remove unused `KeyID`. (#29167) 1 year ago
external_login_user.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
follow.go Add user blocking (#29028) 1 year ago
follow_test.go Next round of `db.DefaultContext` refactor (#27089) 2 years ago
list.go Reduce usage of `db.DefaultContext` (#27073) 2 years ago
main_test.go make writing main test easier (#27270) 1 year ago
must_change_password.go Add command to bulk set must-change-password (#22823) 2 years ago
openid.go More refactoring of `db.DefaultContext` (#27083) 2 years ago
openid_test.go More refactoring of `db.DefaultContext` (#27083) 2 years ago
redirect.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
redirect_test.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
search.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 1 year ago
setting.go More refactoring of `db.DefaultContext` (#27083) 2 years ago
setting_keys.go Show outdated comments in files changed tab (#24936) 2 years ago
setting_test.go More refactoring of `db.DefaultContext` (#27083) 2 years ago
user.go Allow disabling authentication related user features (#31535) 8 months ago
user_system.go Replace -1 with GhostUserID (#27703) 1 year ago
user_test.go Use FullName in Emails to address the recipient if possible (#31527) 8 months ago
user_update.go Implement FSFE REUSE for golang files (#21840) 2 years ago