aboutsummaryrefslogtreecommitdiffhomepage
path: root/model/user.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-04-28 18:20:46 -0700
committerGravatar fguillot <fred@miniflux.net>2019-04-28 18:35:58 -0700
commit4295a86e55e765e3e396a03c090bd08be9e0a390 (patch)
tree77b388feb1ec345c3823b7c7338ab8d293ff3b77 /model/user.go
parent3c8cc0b2b69c8de7343dfbec0e22934c954487df (diff)
Add option to enable/disable keyboard shortcuts
Diffstat (limited to 'model/user.go')
-rw-r--r--model/user.go21
1 files changed, 11 insertions, 10 deletions
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.