diff --git a/i18n/en.yml b/i18n/en.yml index 79cf4b2..c704849 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -150,6 +150,7 @@ en: name: "Name" no_group: "Without group" nothing: "No matches!" + otp_code: "OTP code" password: "Password" port: "Port" protocol: "Protocol" diff --git a/i18n/fr.yml b/i18n/fr.yml index caf1e05..41cac4d 100644 --- a/i18n/fr.yml +++ b/i18n/fr.yml @@ -150,6 +150,7 @@ fr: name: "Nom" no_group: "Sans groupe" nothing: "Aucun résultat!" + otp_code: "Code OTP" password: "Mot de passe" port: "Port" protocol: "Protocol" diff --git a/lib/mpw/cli.rb b/lib/mpw/cli.rb index 53ebe89..b0e413d 100644 --- a/lib/mpw/cli.rb +++ b/lib/mpw/cli.rb @@ -205,12 +205,15 @@ class Cli puts item.protocol print "#{I18n.t('display.login')}: ".cyan puts item.user - print "#{I18n.t('display.password')}: ".cyan if @clipboard + print "#{I18n.t('display.password')}: ".cyan puts '***********' else + print "#{I18n.t('display.password')}: ".cyan puts @mpw.get_password(item.id) + print "#{I18n.t('display.otp_code')}: ".cyan + puts "#{@mpw.get_otp_code(item.id)} (#{@mpw.get_otp_remaining_time}s)" end print "#{I18n.t('display.port')}: ".cyan