diff --git a/core/startos/src/tunnel/auth.rs b/core/startos/src/tunnel/auth.rs index 21482980f..62b960f96 100644 --- a/core/startos/src/tunnel/auth.rs +++ b/core/startos/src/tunnel/auth.rs @@ -293,14 +293,7 @@ pub async fn set_password_cli( Ok(()) } -pub async fn reset_password( - HandlerArgs { - context, - parent_method, - method, - .. - }: HandlerArgs, -) -> Result<(), Error> { +pub async fn reset_password(ctx: CliContext) -> Result<(), Error> { println!("Generating a random password..."); let params = SetPasswordParams { password: base32::encode( @@ -309,11 +302,7 @@ pub async fn reset_password( ), }; - context - .call_remote::( - &parent_method.iter().chain(method.iter()).join("."), - to_value(¶ms)?, - ) + ctx.call_remote::("auth.set-password", to_value(¶ms)?) .await?; println!("Your new password is:");