This commit is contained in:
parent
bb58dad40c
commit
b7634fa4a5
|
@ -155,9 +155,10 @@ func addUser(username, password string) string {
|
|||
dir := filepath.Dir(firstUserWorkspace)
|
||||
workspace := filepath.Join(dir, username)
|
||||
|
||||
newUser := &conf.User{Name: username, Password: password, Workspace: workspace,
|
||||
Locale: conf.Wide.Locale, GoFormat: "gofmt", Editor: &conf.Editor{FontSize: "10px"}}
|
||||
conf.Wide.Users = append(conf.Wide.Users, newUser)
|
||||
conf.Wide.Users = append(conf.Wide.Users,
|
||||
&conf.User{Name: username, Password: password, Workspace: workspace,
|
||||
Locale: conf.Wide.Locale, GoFormat: "gofmt", FontFamily: "Helvetica", FontSize: "inherit",
|
||||
Editor: &conf.Editor{FontFamily: "Consolas, 'Courier New', monospace", FontSize: "inherit"}})
|
||||
|
||||
if !conf.Save() {
|
||||
return UserCreateError
|
||||
|
|
|
@ -2,6 +2,7 @@ body,
|
|||
input,
|
||||
button {
|
||||
font-family: Helvetica;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.edit-exprinfo,
|
||||
|
|
|
@ -2,6 +2,7 @@ body,
|
|||
input,
|
||||
button {
|
||||
font-family: {{.user.FontFamily}};
|
||||
font-size: {{.user.FontSize}};
|
||||
}
|
||||
|
||||
.edit-exprinfo,
|
||||
|
|
Loading…
Reference in New Issue