mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	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  --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		@@ -104,7 +104,7 @@ function initPreInstall() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function initPostInstall() {
 | 
			
		||||
  const el = document.querySelector('#goto-user-login');
 | 
			
		||||
  const el = document.querySelector('#goto-after-install');
 | 
			
		||||
  if (!el) return;
 | 
			
		||||
 | 
			
		||||
  const targetUrl = el.getAttribute('href');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user