diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/src/federation.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/src/federation.rs b/base/src/federation.rs index 509b87c..9cd04ae 100644 --- a/base/src/federation.rs +++ b/base/src/federation.rs @@ -3,9 +3,10 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ -use anyhow::anyhow; use crate::CONF; -use jellyclient::{Instance, LoginDetails, Session}; +use anyhow::anyhow; +use jellyclient::{Instance, Session}; +use jellycommon::user::CreateSessionParams; use std::{collections::HashMap, sync::Arc}; use tokio::sync::RwLock; @@ -46,7 +47,7 @@ impl Federation { let s = Arc::new( self.get_instance(host)? .to_owned() - .login(LoginDetails { + .login(CreateSessionParams { username: username.to_owned(), password: password.to_owned(), expire: None, |