Bump up salt cost
This commit is contained in:
parent
90982e729c
commit
3c790dc9ff
1 changed files with 1 additions and 1 deletions
2
users.go
2
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)
|
||||
}
|
||||
|
|
Reference in a new issue