no more clones!
This commit is contained in:
@ -113,9 +113,9 @@ ORDER BY name
|
||||
//been deleted
|
||||
}
|
||||
|
||||
match user.pw.clone() {
|
||||
match user.pw.as_ref() {
|
||||
Some(user_pw) => {
|
||||
let password_hash = Self::get_hashed_pw(&pw);
|
||||
let password_hash = &Self::get_hashed_pw(&pw);
|
||||
if password_hash == user_pw {
|
||||
return Ok(user);
|
||||
}
|
||||
|
Reference in New Issue
Block a user