mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-23 18:40:34 +00:00
Reduce a little bit bcrypt cost
From 12 to 10, to make login time shorter.
This commit is contained in:
parent
ac631627ab
commit
78b3202a32
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue