login fix
This commit is contained in:
parent
054249aa79
commit
53b517876c
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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!(" ");
|
||||
|
|
Loading…
Reference in a new issue