From bc6f06e210c3dce810b61879deb8d4adb96def78 Mon Sep 17 00:00:00 2001 From: "D. Scott Boggs" Date: Sat, 26 Aug 2023 11:21:36 -0400 Subject: [PATCH] DEFAULT_COST + 2 is 2 much --- server/src/entities/users.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/entities/users.rs b/server/src/entities/users.rs index 5805910..57e0d6a 100644 --- a/server/src/entities/users.rs +++ b/server/src/entities/users.rs @@ -53,7 +53,7 @@ impl ActiveModel { pub fn new(name: impl AsRef, password: impl AsRef) -> error::Result { use sea_orm::ActiveValue::Set; let name = Set(name.as_ref().to_string()); - let password_hash = Set(hash(password.as_ref(), DEFAULT_COST + 2)?); + let password_hash = Set(hash(password.as_ref(), DEFAULT_COST)?); Ok(Self { name, password_hash,