Fixed hashing of passwords, Closes #3

This commit is contained in:
Torkel Ödegaard
2015-01-08 09:00:00 +01:00
parent 6d814af0cc
commit 3226a3a58e
13 changed files with 138 additions and 60 deletions
+2
View File
@@ -18,6 +18,7 @@ type Account struct {
FullName string
Password string
IsAdmin bool
Rands string `xorm:"VARCHAR(10)"`
Salt string `xorm:"VARCHAR(10)"`
Company string
NextDashboardId int
@@ -55,6 +56,7 @@ type CreateAccountCommand struct {
Password string `json:"password" binding:"required"`
Name string `json:"name"`
Company string `json:"company"`
Salt string `json:"-"`
Result Account `json:"-"`
}