mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-23 05:47:53 +00:00
show otp code whitout clipboard
This commit is contained in:
parent
2dcff8d9ef
commit
d51c4733c0
3 changed files with 6 additions and 1 deletions
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue