aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/account/delete.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-11 16:27:35 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-11 16:27:35 +0200
commit5a4c4b9fa0df891fcdd9beee18be0db4a45da701 (patch)
treeb467a1bd5706643b77962e7a82d651a803bfc436 /crates/turtle/src/command/client/account/delete.rs
parentchore(server): Simplify the database support (diff)
downloadatuin-5a4c4b9fa0df891fcdd9beee18be0db4a45da701.zip
chore(server): Remove the last remnants of the "hub" sync-server thingy
Diffstat (limited to 'crates/turtle/src/command/client/account/delete.rs')
-rw-r--r--crates/turtle/src/command/client/account/delete.rs22
1 files changed, 5 insertions, 17 deletions
diff --git a/crates/turtle/src/command/client/account/delete.rs b/crates/turtle/src/command/client/account/delete.rs
index 1c96cb4a..722c39ec 100644
--- a/crates/turtle/src/command/client/account/delete.rs
+++ b/crates/turtle/src/command/client/account/delete.rs
@@ -1,11 +1,8 @@
-use crate::atuin_client::{
- auth::{self, MutateResponse},
- settings::Settings,
-};
+use crate::atuin_client::{auth, settings::Settings};
use clap::Parser;
use eyre::{Result, bail};
-use super::login::{or_user_input, read_user_password};
+use super::login::read_user_password;
#[derive(Parser, Debug)]
pub(crate) struct Cmd {
@@ -33,18 +30,9 @@ impl Cmd {
let mut totp_code = self.totp_code.clone();
- loop {
- let response = client
- .delete_account(&password, totp_code.as_deref())
- .await?;
-
- match response {
- MutateResponse::Success => break,
- MutateResponse::TwoFactorRequired => {
- totp_code = Some(or_user_input(None, "two-factor code"));
- }
- }
- }
+ client
+ .delete_account(&password, totp_code.as_deref())
+ .await?;
// Clean up sessions from meta store
let meta = Settings::meta_store().await?;