From 4295a86e55e765e3e396a03c090bd08be9e0a390 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 28 Apr 2019 18:20:46 -0700 Subject: Add option to enable/disable keyboard shortcuts --- model/user.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'model/user.go') diff --git a/model/user.go b/model/user.go index 6c537b2..fd19d9f 100644 --- a/model/user.go +++ b/model/user.go @@ -13,16 +13,17 @@ import ( // User represents a user in the system. type User struct { - ID int64 `json:"id"` - Username string `json:"username"` - Password string `json:"password,omitempty"` - IsAdmin bool `json:"is_admin"` - Theme string `json:"theme"` - Language string `json:"language"` - Timezone string `json:"timezone"` - EntryDirection string `json:"entry_sorting_direction"` - LastLoginAt *time.Time `json:"last_login_at,omitempty"` - Extra map[string]string `json:"extra"` + ID int64 `json:"id"` + Username string `json:"username"` + Password string `json:"password,omitempty"` + IsAdmin bool `json:"is_admin"` + Theme string `json:"theme"` + Language string `json:"language"` + Timezone string `json:"timezone"` + EntryDirection string `json:"entry_sorting_direction"` + KeyboardShortcuts bool `json:"keyboard_shortcuts"` + LastLoginAt *time.Time `json:"last_login_at,omitempty"` + Extra map[string]string `json:"extra"` } // NewUser returns a new User. -- cgit v1.2.3