update tokencracker for new API
This commit is contained in:
parent
0dc649cb16
commit
de2f0a12b5
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ async fn main() -> Result<()> {
|
|||
|
||||
let (username, userdir) =
|
||||
if let (200..=210, Ok(usr)) = (response.status().as_u16(), response.bytes().await) {
|
||||
let UserResponse { user: JensmemesUser {name, userdir, ..}, .. } = serde_json::from_slice::<UserResponse>(&usr)?;
|
||||
(name, userdir)
|
||||
let UserResponse { user: JensmemesUser {name, tokenhash, ..}, .. } = serde_json::from_slice::<UserResponse>(&usr)?;
|
||||
(name, tokenhash)
|
||||
} else {
|
||||
("Not in Database".into(), public.clone())
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue