gitea/templates/admin
wxiaoguang 0148d03f21
Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187)
Fix #880

Design:

1. A global setting `security.TWO_FACTOR_AUTH`.
* To support org-level config, we need to introduce a better "owner
setting" system first (in the future)
2. A user without 2FA can login and may explore, but can NOT read or
write to any repositories via API/web.
3. Keep things as simple as possible.
* This option only aggressively suggest users to enable their 2FA at the
moment, it does NOT guarantee that users must have 2FA before all other
operations, it should be good enough for real world use cases.
* Some details and tests could be improved in the future since this
change only adds a check and seems won't affect too much.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-04-28 15:31:59 -07:00
..
applications Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
auth Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
emails Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
org Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
packages Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
repo Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
runners Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
user Align User Details Page Header Layout with Design Specifications (#34192) 2025-04-15 01:16:33 -04:00
actions.tmpl Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00
config_settings.tmpl Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
config.tmpl Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
cron.tmpl Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
dashboard.tmpl Replace text-align classes with tailwind (#33905) 2025-03-16 12:08:16 +00:00
hook_new.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Fix flash message for flex-container (#30657) 2024-04-23 08:31:51 +00:00
navbar.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
notice.tmpl Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
perftrace.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
queue_manage.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
queue.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
self_check.tmpl Add cache test for admins (#31265) 2024-06-17 21:22:39 +02:00
stacktrace-row.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
stacktrace.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
stats.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
system_status.tmpl Auto-update the system status in admin dashboard (#29163) 2024-02-16 02:52:25 +00:00
trace_tabs.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00