forgejo/options/locale_next
zokki d6838462b8 feat: Global 2FA enforcement (#8753)
resolves #8549

This PR add a config to enforce 2FA for the whole Forgejo instance. It can be configured to `none`, `admin` or `all`.
A user who is required to enable 2FA is like a disabled user. He can only see the `/user/settings/security`-Page to enable 2FA, this should be similar to a user which needs to change his password. Also api and git-commands are not allowed.

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [ ] I did not document these changes and I do not expect someone else to do it.

I will do it, if the general idea of this PR is a good feature.

### Release notes

- [ ] I do not want this change to show in the release notes.
- [x] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Security features
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/8753): <!--number 8753 --><!--line 0 --><!--description R2xvYmFsIDJGQSBlbmZvcmNlbWVudA==-->Global 2FA enforcement<!--description-->
<!--end release-notes-assistant-->

Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8753
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Ellen Εμιλία Άννα Zscheile <fogti@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: zokki <zokki.softwareschmiede@gmail.com>
Co-committed-by: zokki <zokki.softwareschmiede@gmail.com>
2025-08-15 10:56:45 +02:00
..
locale_ar.json i18n: update of translations from Codeberg Translate 2025-07-31 13:00:55 +00:00
locale_be.json i18n: update of translations from Codeberg Translate 2025-07-16 16:30:00 +00:00
locale_bg.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_bn.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_bs.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_ca.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_cs-CZ.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_da.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_de-DE.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_el-GR.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_en-US.json feat: Global 2FA enforcement (#8753) 2025-08-15 10:56:45 +02:00
locale_eo.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_es-ES.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_et.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_fa-IR.json i18n: update of translations from Codeberg Translate (#7066) 2025-03-07 14:26:37 +00:00
locale_fi-FI.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_fil.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_fr-FR.json i18n: update of translations from Codeberg Translate 2025-08-07 14:01:05 +00:00
locale_gl.json i18n: update of translations from Codeberg Translate 2025-05-26 14:12:01 +00:00
locale_hi.json i18n: update of translations from Codeberg Translate 2025-07-25 14:11:36 +00:00
locale_hu-HU.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_id-ID.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_is-IS.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_it-IT.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_ja-JP.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_ko-KR.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_lt.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_lv-LV.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_ml-IN.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_nb_NO.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_nds.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_nl-NL.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_pl-PL.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_pt-BR.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_pt-PT.json i18n: update of translations from Codeberg Translate 2025-07-31 13:00:55 +00:00
locale_ru-RU.json i18n: update of translations from Codeberg Translate 2025-08-07 14:01:05 +00:00
locale_si-LK.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_sk-SK.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_sl.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_sr-SP.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_sv-SE.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_tr-TR.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_uk-UA.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_vi.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_yi.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_zh-CN.json i18n: update of translations from Codeberg Translate 2025-08-14 05:29:43 +00:00
locale_zh-HK.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00
locale_zh-TW.json i18n: update of translations from Codeberg Translate 2025-07-11 05:58:02 +00:00