@@ -27,6 +27,8 @@ type SetupStatusResponse struct {
2727 LogoShowText bool `json:"logo_show_text"`
2828 FaviconURL string `json:"favicon_url"`
2929 LoginBackgroundURL string `json:"login_background_url"`
30+ Language string `json:"language"`
31+ Theme string `json:"theme"`
3032}
3133
3234type SetupRequest struct {
@@ -56,6 +58,8 @@ func (h *SetupHandler) GetStatus(c *gin.Context) {
5658 LogoShowText : settings .LogoShowText ,
5759 FaviconURL : settings .FaviconURL ,
5860 LoginBackgroundURL : settings .LoginBackgroundURL ,
61+ Language : settings .Language ,
62+ Theme : settings .Theme ,
5963 })
6064}
6165
@@ -130,6 +134,8 @@ type UpdateSettingsRequest struct {
130134 LogoShowText * bool `json:"logo_show_text"`
131135 FaviconURL * string `json:"favicon_url"`
132136 LoginBackgroundURL * string `json:"login_background_url"`
137+ Language string `json:"language"`
138+ Theme string `json:"theme"`
133139}
134140
135141func (h * SetupHandler ) UpdateSettings (c * gin.Context ) {
@@ -166,6 +172,12 @@ func (h *SetupHandler) UpdateSettings(c *gin.Context) {
166172 if req .LoginBackgroundURL != nil {
167173 settings .LoginBackgroundURL = * req .LoginBackgroundURL
168174 }
175+ if req .Language != "" {
176+ settings .Language = req .Language
177+ }
178+ if req .Theme != "" {
179+ settings .Theme = req .Theme
180+ }
169181
170182 database .DB .Save (& settings )
171183
0 commit comments