You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-07-01 04:04:56 +02:00
decreased bcrypt round hash for admins to 12 for consistency with the auth records
This commit is contained in:
@ -48,7 +48,7 @@ func (m *Admin) SetPassword(password string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// hash the password
|
// hash the password
|
||||||
hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), 13)
|
hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), 12)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user