Bump up salt cost

This commit is contained in:
Matthew Dillon 2015-07-14 09:14:22 -08:00
parent 90982e729c
commit 3c790dc9ff

View file

@ -185,7 +185,7 @@ func (u UserService) create(e *entity, dummy string, claims *Claims) *appError {
ct := currentTime()
user.CreatedAt = ct
user.UpdatedAt = ct
hash, err := bcrypt.GenerateFromPassword([]byte(user.Password), 10)
hash, err := bcrypt.GenerateFromPassword([]byte(user.Password), 12)
if err != nil {
return newJSONError(err, http.StatusInternalServerError)
}