diff --git a/src/api/client/account/mod.rs b/src/api/client/account/mod.rs index d7bf69c10..ca4b59154 100644 --- a/src/api/client/account/mod.rs +++ b/src/api/client/account/mod.rs @@ -96,7 +96,10 @@ pub(crate) async fn change_password_route( &body.auth, vec![AuthFlow::new(vec![AuthType::Password])], Box::default(), - Some(UiaaInitiator::new(identity.expect_sender_user()?, identity.sender_device())), + Some(UiaaInitiator::new( + identity.expect_sender_user()?, + identity.sender_device(), + )), ) .await? } else { diff --git a/src/api/client/account/threepid.rs b/src/api/client/account/threepid.rs index 574409181..dea02ea2c 100644 --- a/src/api/client/account/threepid.rs +++ b/src/api/client/account/threepid.rs @@ -123,7 +123,8 @@ pub(crate) async fn add_3pid_route( let _ = services .uiaa .authenticate_password( - &body.auth, body.identity.expect_sender_user()?, + &body.auth, + body.identity.expect_sender_user()?, body.identity.sender_device(), None, )