Admin flagged users, create a default admin user on startup if missing

This commit is contained in:
Torkel Ödegaard
2015-01-15 14:44:15 +01:00
parent 5ec07db143
commit fdfcc3ab2a
16 changed files with 65 additions and 299 deletions
+9 -7
View File
@@ -31,13 +31,15 @@ type Account struct {
// COMMANDS
type CreateAccountCommand struct {
Email string `json:"email" binding:"required"`
Login string `json:"login"`
Password string `json:"password" binding:"required"`
Name string `json:"name"`
Company string `json:"company"`
Salt string `json:"-"`
Result Account `json:"-"`
Email string `json:"email" binding:"required"`
Login string `json:"login"`
Password string `json:"password" binding:"required"`
Name string `json:"name"`
Company string `json:"company"`
Salt string `json:"-"`
IsAdmin bool `json:"-"`
Result Account `json:"-"`
}
type SetUsingAccountCommand struct {