1
0
Fork 0
forked from TWS/kalkutago

DEFAULT_COST + 2 is 2 much

This commit is contained in:
D. Scott Boggs 2023-08-26 11:21:36 -04:00
parent 424bc15512
commit bc6f06e210

View file

@ -53,7 +53,7 @@ impl ActiveModel {
pub fn new(name: impl AsRef<str>, password: impl AsRef<str>) -> error::Result<Self> {
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,