From 695c20a9696e0079ce89e8b1d7413309a9084394 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 19 Mar 2023 16:10:11 +0200 Subject: [PATCH] decreased bcrypt round hash for admins to 12 for consistency with the auth records --- models/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/admin.go b/models/admin.go index c85e133c..047aff76 100644 --- a/models/admin.go +++ b/models/admin.go @@ -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 }