From 10c14b4d0ac7f184216a747332a53485f507bbd4 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 13 Nov 2025 16:36:17 -0700 Subject: [PATCH] fix set-password --- core/startos/src/tunnel/auth.rs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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:");