1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 13:57:52 +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" name: "Name"
no_group: "Without group" no_group: "Without group"
nothing: "No matches!" nothing: "No matches!"
otp_code: "OTP code"
password: "Password" password: "Password"
port: "Port" port: "Port"
protocol: "Protocol" protocol: "Protocol"

View file

@ -150,6 +150,7 @@ fr:
name: "Nom" name: "Nom"
no_group: "Sans groupe" no_group: "Sans groupe"
nothing: "Aucun résultat!" nothing: "Aucun résultat!"
otp_code: "Code OTP"
password: "Mot de passe" password: "Mot de passe"
port: "Port" port: "Port"
protocol: "Protocol" protocol: "Protocol"

View file

@ -205,12 +205,15 @@ class Cli
puts item.protocol puts item.protocol
print "#{I18n.t('display.login')}: ".cyan print "#{I18n.t('display.login')}: ".cyan
puts item.user puts item.user
print "#{I18n.t('display.password')}: ".cyan
if @clipboard if @clipboard
print "#{I18n.t('display.password')}: ".cyan
puts '***********' puts '***********'
else else
print "#{I18n.t('display.password')}: ".cyan
puts @mpw.get_password(item.id) 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 end
print "#{I18n.t('display.port')}: ".cyan print "#{I18n.t('display.port')}: ".cyan