gitea/templates
Kerwin Bryant 0548c10293
Add post-installation redirect based on admin account status (#34493)
This PR adds a feature to direct users to appropriate pages after system
installation:
- If no admin credentials were provided during installation, redirect to
the registration page with a prominent notice about creating the first
administrative account
- If admin credentials were already set, redirect directly to the login
page


![4d396ad132d9b57fc4f45a62117177f1](https://github.com/user-attachments/assets/3a5d8700-9194-4d3b-a862-e64c8c347932)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-21 18:48:06 +00:00
..
admin Fix autofocus behavior (#34397) 2025-05-08 18:26:18 +00:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest markup: improve code block readability and isolate copy button (#34009) 2025-04-19 05:53:39 +00:00
explore Fix span svg layout (#34185) 2025-04-13 12:44:57 +08:00
mail Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
org Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +00:00
package Refactor packages (func name & UI) (#34773) 2025-06-18 19:04:24 +00:00
projects Add fullscreen mode as a more efficient operation way to view projects (#34081) 2025-04-23 13:42:22 +08:00
repo Refactor editor (#34780) 2025-06-21 19:20:51 +08:00
shared Improve img lazy loading (#34804) 2025-06-21 14:53:22 +08:00
status Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
swagger Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +08:00
user Add post-installation redirect based on admin account status (#34493) 2025-06-21 18:48:06 +00:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
install.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +08:00
post-install.tmpl Add post-installation redirect based on admin account status (#34493) 2025-06-21 18:48:06 +00:00