refactor: "install" page (#39400)

1. remove useless options
2. set AppDataPath instead of repo root path
3. make "disable self-registration" default enabled
4. avoid writing corrupted ini file
5. avoid auto-sign-in the existing admin user
This commit is contained in:
wxiaoguang
2026-09-23 23:14:31 +00:00
committed by GitHub
parent 71065941a9
commit f14cedc4fa
35 changed files with 261 additions and 439 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func newFuncMapWebPage() template.FuncMap {
return setting.AppVer
},
"AppDomain": func() string { // TODO: helm registry still uses it, need to use current request host in the future
return setting.Domain
return setting.AppDomain
},
"ShowFooterTemplateLoadTime": func() bool {
return setting.Other.ShowFooterTemplateLoadTime
+2 -2
View File
@@ -54,7 +54,7 @@ func mailSubjectTextFuncMap() texttmpl.FuncMap {
return setting.AppName
},
"AppDomain": func() string { // documented in mail-templates.md
return setting.Domain
return setting.AppDomain
},
}
}
@@ -99,7 +99,7 @@ func mailBodyFuncMap() template.FuncMap {
return setting.AppURL
},
"AppDomain": func() string {
return setting.Domain
return setting.AppDomain
},
}
}