login fix

This commit is contained in:
JMARyA 2024-06-16 16:57:34 +02:00
parent 054249aa79
commit 53b517876c
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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!(" ");