From 118e138a396ce45f0627bb1f15a7e3d7fa31539a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 6 Jun 2020 13:52:55 -0400 Subject: Print username for logins with --full (Jarkko Oranen) --- src/bin/rbw/commands.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index ac27755..addebb3 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -78,8 +78,9 @@ impl DecryptedCipher { fn display_long(&self, desc: &str) { match &self.data { - DecryptedData::Login { .. } => { - let displayed = self.display_short(desc); + DecryptedData::Login { username, .. } => { + let mut displayed = self.display_short(desc); + displayed |= self.display_field("Username", username.as_deref()); if let Some(notes) = &self.notes { if displayed { -- cgit v1.2.3-54-g00ecf