Reduce a little bit bcrypt cost
From 12 to 10, to make login time shorter.
This commit is contained in:
parent
ac631627ab
commit
78b3202a32
@ -228,7 +228,7 @@ impl User {
|
||||
}
|
||||
|
||||
pub fn hash_pass(pass: String) -> String {
|
||||
bcrypt::hash(pass.as_str(), bcrypt::DEFAULT_COST).unwrap()
|
||||
bcrypt::hash(pass.as_str(), 10).unwrap()
|
||||
}
|
||||
|
||||
pub fn auth(&self, pass: String) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user