disallow change workspace 🐛 😟

This commit is contained in:
Liang Ding 2015-01-09 10:18:24 +08:00
parent cc9554a4ca
commit abf9803ac7
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,8 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
user.FontFamily = args.FontFamily
user.FontSize = args.FontSize
user.GoFormat = args.GoFmt
user.Workspace = args.Workspace
// XXX: disallow change workspace at present
// user.Workspace = args.Workspace
if user.Password != args.Password {
user.Password = conf.Salt(args.Password, user.Salt)
}

View File

@ -84,7 +84,7 @@
<input data-value="{{.user.Locale}}" value="{{.user.Locale}}" name="locale" hidden="hidden" />
<label>
{{.i18n.workspace}}{{.i18n.colon}}
<input data-value="{{.user.Workspace}}" value="{{.user.Workspace}}" name="workspace"/>
<input data-value="{{.user.Workspace}}" value="{{.user.Workspace}}" name="workspace" readonly="readonly" />
</label>
<label>
{{.i18n.password}}{{.i18n.colon}}