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
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
..
actions Drop `IDOrderDesc` for listing Actions task and always order by `id DESC` (#31150) 9 months ago
activities Fix web notification icon not updated once you read all notifications (#31447) 8 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 1 year ago
asymkey Enable more `revive` linter rules (#30608) 10 months ago
auth Add Passkey login support (#31504) 8 months ago
avatars Replace 10 more gt- classes with tw- (#29945) 11 months ago
db [Refactor] Unify repo search order by logic (#30876) 9 months ago
dbfs Enable `unparam` linter (#31277) 9 months ago
fixtures Fix wrong display of recently pushed notification (#25812) 9 months ago
git Allow force push to protected branches (#28086) 8 months ago
issues Refactor issue label selection (#31497) 8 months ago
migrations Allow force push to protected branches (#28086) 8 months ago
organization Fix wrong display of recently pushed notification (#25812) 9 months ago
packages Fix package list performance (#30520) 10 months ago
perm Clarify permission "HasAccess" behavior (#30585) 10 months ago
project Rename project board -> column to make the UI less confusing (#30170) 9 months ago
pull Add support for sha256 repositories (#23894) 1 year ago
repo Refactor repo unit "disabled" check (#31389) 9 months ago
secret Make runs-on support variable expression (#29468) 12 months ago
shared/types Refactor locale&string&template related code (#29165) 1 year ago
system Refactor deletion (#28610) 1 year ago
unit Refactor repo unit "disabled" check (#31389) 9 months ago
unittest Add some tests to clarify the "must-change-password" behavior (#30693) 10 months ago
user Allow disabling authentication related user features (#31535) 8 months ago
webhook Store webhook event in database (#29145) 12 months ago
error.go Add merge style `fast-forward-only` (#28954) 1 year ago
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
org.go Add user blocking (#29028) 1 year ago
org_team.go Clarify permission "HasAccess" behavior (#30585) 10 months ago
org_team_test.go Add user blocking (#29028) 1 year ago
org_test.go Add user blocking (#29028) 1 year ago
repo.go Refactor deletion (#28610) 1 year ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_transfer.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 10 months ago