Worked on login remember cookie, and redirect after login

This commit is contained in:
Torkel Ödegaard
2015-01-27 12:05:23 +01:00
parent 6e5ef561eb
commit 257519490a
9 changed files with 98 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ type User struct {
Login string
Password string
Salt string
Rands string
Company string
IsAdmin bool
@@ -36,6 +37,7 @@ type CreateUserCommand struct {
Company string `json:"compay"`
Password string `json:"password" binding:"Required"`
Salt string `json:"-"`
Rands string `json:"-"`
IsAdmin bool `json:"-"`
Result User `json:"-"`