From 3c790dc9ff5ebd1d9cce8db284fa552527c9bb3f Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 14 Jul 2015 09:14:22 -0800 Subject: [PATCH] Bump up salt cost --- users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users.go b/users.go index e8927e9..3010cec 100644 --- a/users.go +++ b/users.go @@ -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) }