mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-29 08:20:25 +01:00
decreased bcrypt round hash for admins to 12 for consistency with the auth records
This commit is contained in:
1 parent
95bb2eb871
commit
695c20a969
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user