From 802395bdb7f83b04a54c0d4b7a356ae2c4919254 Mon Sep 17 00:00:00 2001 From: "admin@dimensionproject.net" Date: Wed, 18 Dec 2024 20:46:01 -0500 Subject: [PATCH] add password argument to reset-password admin cmd Signed-off-by: strawberry --- src/admin/user/commands.rs | 8 ++++++-- src/admin/user/mod.rs | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/admin/user/commands.rs b/src/admin/user/commands.rs index 803fbcf2..1cbbf856 100644 --- a/src/admin/user/commands.rs +++ b/src/admin/user/commands.rs @@ -242,7 +242,11 @@ pub(super) async fn deactivate( } #[admin_command] -pub(super) async fn reset_password(&self, username: String) -> Result { +pub(super) async fn reset_password( + &self, + username: String, + password: Option, +) -> Result { let user_id = parse_local_user_id(self.services, &username)?; if user_id == self.services.globals.server_user { @@ -252,7 +256,7 @@ pub(super) async fn reset_password(&self, username: String) -> Result, }, /// - Deactivate a user