whoops
This commit is contained in:
parent
1423d995a4
commit
ca6966dd1d
1 changed files with 1 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ const INVALID_TOKEN_ERRORS_DBG: Errors<'static> = Errors{
|
||||||
};
|
};
|
||||||
|
|
||||||
// optimization note: add token caching
|
// optimization note: add token caching
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct User {
|
pub struct User {
|
||||||
pub pid: i32,
|
pub pid: i32,
|
||||||
pub username: String,
|
pub username: String,
|
||||||
|
|
@ -154,7 +155,6 @@ pub async fn read_basic_auth_token(connection: &Pool, token: &str) -> Option<Use
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
println!("Fetched user from database: {:?}", user);
|
|
||||||
|
|
||||||
let password_valid = user.verify_cleartext_password(&login_password);
|
let password_valid = user.verify_cleartext_password(&login_password);
|
||||||
println!("Password verification result: {:?}", password_valid);
|
println!("Password verification result: {:?}", password_valid);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue