1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-26 23:33:03 +00:00

show otp code whitout clipboard

This commit is contained in:
nishiki 2016-08-03 21:26:04 +02:00
parent 2dcff8d9ef
commit d51c4733c0
3 changed files with 6 additions and 1 deletions

View file

@ -150,6 +150,7 @@ en:
name: "Name"
no_group: "Without group"
nothing: "No matches!"
otp_code: "OTP code"
password: "Password"
port: "Port"
protocol: "Protocol"

View file

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

View file

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