Sign up and login work

This commit is contained in:
Torkel Ödegaard
2015-01-21 09:52:40 +01:00
parent 4786e0f882
commit 3c8c53194f
7 changed files with 24 additions and 43 deletions

View File

@@ -30,13 +30,13 @@ type User struct {
// COMMANDS
type CreateUserCommand struct {
Email string
Login string
Name string
Company string
Password string
Salt string
IsAdmin bool
Email string `json:"email" binding:"Required"`
Login string `json:"login"`
Name string `json:"name"`
Company string `json:"compay"`
Password string `json:"password" binding:"Required"`
Salt string `json:"-"`
IsAdmin bool `json:"-"`
Result User `json:"-"`
}