1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-02-09 04:03:49 +02:00

lowered auth record bcrypt round factor to 12

This commit is contained in:
Gani Georgiev 2023-03-13 15:52:51 +02:00
parent f180af7af7
commit 3eb3d0bbdf
2 changed files with 7 additions and 5 deletions

View File

@ -1,22 +1,24 @@
<<<<<<< HEAD
## (WIP) v0.14.0
- Added _experimental_ Apple OAuth2 integration.
- Optimized single relation lookups (@todo doc).
- Optimized single relation lookups.
- Normalized record values on `maxSelect` field option change (`select`, `file`, `relation`).
When changing **from single to multiple** all already inserted single values are converted to an array.
When changing **from multiple to single** only the last item of the already inserted array items is kept.
- Changed the cost/round factor of the auth records bcrypt hash generation from 13 to 12 since several users complained about the slow authWithPassword responses on lower spec hardware.
_The change will affect only new users. Depending on the demand, we may make it configurable from the auth options._
- **!** Changed the request logs `method` value to UPPERCASE, eg. "get" => "GET" ([#1956](https://github.com/pocketbase/pocketbase/discussions/1956)).
=======
## v0.13.3
- Fixed view collections import ([#2044](https://github.com/pocketbase/pocketbase/issues/2044)).
- Updated the records picker Admin UI to show properly view collection relations.
>>>>>>> master
## v0.13.2

View File

@ -864,7 +864,7 @@ func (m *Record) 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
}