Skip to content

Commit

Permalink
decreased bcrypt round hash for admins to 12 for consistency with the…
Browse files Browse the repository at this point in the history
… auth records
  • Loading branch information
ganigeorgiev committed Mar 19, 2023
1 parent 95bb2eb commit 695c20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m *Admin) SetPassword(password string) error {
}

// hash the password
hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), 13)
hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), 12)
if err != nil {
return err
}
Expand Down

0 comments on commit 695c20a

Please sign in to comment.