gitea/routers/web
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 Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
auth Add post-installation redirect based on admin account status (#34493) 2025-06-21 18:48:06 +00:00
devtest Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Fix remaining issues after `gopls modernize` formatting (#34771) 2025-06-18 11:37:49 -07:00
feed feat(api): add date range filtering to commit retrieval endpoints (#34497) 2025-05-19 18:57:58 -07:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Fix various problems (#34708) 2025-06-12 09:19:24 -07:00
org Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +00:00
repo Refactor editor (#34780) 2025-06-21 19:20:51 +08:00
shared when using rules to delete packages, remove unclean bugs (#34632) 2025-06-18 04:47:49 +00:00
user Refactor packages (func name & UI) (#34773) 2025-06-18 19:04:24 +00:00
base.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
githttp.go Fix git client accessing renamed repo (#34034) 2025-03-28 07:28:58 +08:00
goget.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
home.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +00:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +00:00
webfinger.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00