This commit is contained in:
Liang Ding 2014-11-17 11:56:26 +08:00
parent 9c9fb1049b
commit 05fdf6fb36
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
Workspace string
Username string
Password string
Locale string
}{}
if err := json.NewDecoder(r.Body).Decode(&args); err != nil {
@ -102,6 +103,7 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
user.GoFormat = args.GoFmt
user.Workspace = args.Workspace
user.Password = args.Password
user.Locale = args.Locale
succ = conf.Save()
}