use crate::{
captcha_espeak_wav_base64,
check_optional_url,
- claims::Claims,
collect_moderated_communities,
get_user_from_jwt,
get_user_from_jwt_opt,
use lemmy_structs::{blocking, send_email_to_user, user::*};
use lemmy_utils::{
apub::generate_actor_keypair,
+ claims::Claims,
email::send_email,
location_info,
settings::Settings,
// Return the jwt
Ok(LoginResponse {
- jwt: Claims::jwt(user, Settings::get().hostname)?,
+ jwt: Claims::jwt(user.id, Settings::get().hostname)?,
})
}
}
// Return the jwt
Ok(LoginResponse {
- jwt: Claims::jwt(inserted_user, Settings::get().hostname)?,
+ jwt: Claims::jwt(inserted_user.id, Settings::get().hostname)?,
})
}
}
// Return the jwt
Ok(LoginResponse {
- jwt: Claims::jwt(updated_user, Settings::get().hostname)?,
+ jwt: Claims::jwt(updated_user.id, Settings::get().hostname)?,
})
}
}
// Return the jwt
Ok(LoginResponse {
- jwt: Claims::jwt(updated_user, Settings::get().hostname)?,
+ jwt: Claims::jwt(updated_user.id, Settings::get().hostname)?,
})
}
}