update tokencracker for new API

This commit is contained in:
LordMZTE 2021-03-10 20:43:42 +01:00
parent 0dc649cb16
commit de2f0a12b5

View file

@ -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())
};