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>
7 months ago
..
avatar.go Fix duplicate sub-path for avatars (#31365) 8 months ago
avatar_test.go Fix duplicate sub-path for avatars (#31365) 8 months ago
badge.go Add admin API route for managing user's badges (#23106) 12 months ago
block.go Add user blocking (#29028) 12 months ago
email_address.go Refactor sha1 and time-limited code (#31023) 9 months ago
email_address_test.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 12 months 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) 12 months ago
follow_test.go
list.go
main_test.go make writing main test easier (#27270) 1 year ago
must_change_password.go
openid.go
openid_test.go
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) 12 months ago
setting.go
setting_keys.go
setting_test.go
user.go Allow disabling authentication related user features (#31535) 7 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) 7 months ago
user_update.go