diff --git a/service/user/form/form_validator.go b/service/user/form/form_validator.go index 63f85917..afdfe00d 100644 --- a/service/user/form/form_validator.go +++ b/service/user/form/form_validator.go @@ -67,6 +67,7 @@ type UserForm struct { Password string `form:"password" len_min:"6" len_max:"72" equalInput:"ConfirmPassword"` ConfirmPassword string `form:"password_confirmation" omit:"true"` Status int `form:"status" default:"0"` + Theme string `form:"theme"` } // UserSettingsForm is used when updating a user. diff --git a/templates/_profile_edit.html b/templates/_profile_edit.html index 5c4536e0..0705befb 100644 --- a/templates/_profile_edit.html +++ b/templates/_profile_edit.html @@ -45,6 +45,16 @@
{{ . }}
{{end}}{{ . }}
+ {{end}} {{ with .Settings }} {{ if DefaultUserSettings "new_torrent"}}