disallow change workspace 🐛 😟
This commit is contained in:
parent
cc9554a4ca
commit
abf9803ac7
|
@ -117,7 +117,8 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
user.FontFamily = args.FontFamily
|
user.FontFamily = args.FontFamily
|
||||||
user.FontSize = args.FontSize
|
user.FontSize = args.FontSize
|
||||||
user.GoFormat = args.GoFmt
|
user.GoFormat = args.GoFmt
|
||||||
user.Workspace = args.Workspace
|
// XXX: disallow change workspace at present
|
||||||
|
// user.Workspace = args.Workspace
|
||||||
if user.Password != args.Password {
|
if user.Password != args.Password {
|
||||||
user.Password = conf.Salt(args.Password, user.Salt)
|
user.Password = conf.Salt(args.Password, user.Salt)
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
<input data-value="{{.user.Locale}}" value="{{.user.Locale}}" name="locale" hidden="hidden" />
|
<input data-value="{{.user.Locale}}" value="{{.user.Locale}}" name="locale" hidden="hidden" />
|
||||||
<label>
|
<label>
|
||||||
{{.i18n.workspace}}{{.i18n.colon}}
|
{{.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>
|
||||||
<label>
|
<label>
|
||||||
{{.i18n.password}}{{.i18n.colon}}
|
{{.i18n.password}}{{.i18n.colon}}
|
||||||
|
|
Loading…
Reference in New Issue