From 53b517876c78bf89a3cd802fa564421b35b94812 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 16 Jun 2024 16:57:34 +0200 Subject: [PATCH] login fix --- src/api/mod.rs | 1 + src/ui/task.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/api/mod.rs b/src/api/mod.rs index a8c43e1..8a91cdf 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -342,6 +342,7 @@ impl VikunjaAPI { let resp = self.post_request( "/login", &serde_json::json!({ + "long_token": true, "username": username, "password": password, "totp_passcode": totp diff --git a/src/ui/task.rs b/src/ui/task.rs index 9e51667..27e135e 100644 --- a/src/ui/task.rs +++ b/src/ui/task.rs @@ -175,6 +175,7 @@ pub fn print_task_info(task_id: isize, api: &VikunjaAPI) { &format!("{}: ", Relation::try_parse(&relation.0).unwrap().repr()), ); for t in relation.1 { + // todo : add done indication print_color(crossterm::style::Color::Blue, &t.title); print_color(crossterm::style::Color::Yellow, &format!(" ({})", t.id)); print!(" ");