diff --git a/src/admin/user/commands.rs b/src/admin/user/commands.rs index 31460c7ce..35b98f517 100644 --- a/src/admin/user/commands.rs +++ b/src/admin/user/commands.rs @@ -206,13 +206,13 @@ pub(super) async fn reset_password( ); }, } - - self.write_str(&format!( - "Successfully reset the password for user {user_id}: `{new_password}`" - )) - .await?; } + self.write_str(&format!( + "Successfully reset the password for user {user_id}: `{new_password}`" + )) + .await?; + if logout { self.services .users