diff --git a/src/controllers/users_controller.rs b/src/controllers/users_controller.rs index c4b1187..c50d689 100644 --- a/src/controllers/users_controller.rs +++ b/src/controllers/users_controller.rs @@ -70,7 +70,12 @@ pub async fn show_ssh_key<'r>( for line in ssh_keys.lines() { let line = line.trim(); if !line.is_empty() { - keys.push(line.to_string()) + keys.push( + line.split_ascii_whitespace() + .take(2) + .collect::>() + .join(" "), + ) } } }