forked from TWS/kalkutago
DEFAULT_COST + 2 is 2 much
This commit is contained in:
parent
424bc15512
commit
bc6f06e210
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue