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"
|
||||
no_group: "Without group"
|
||||
nothing: "No matches!"
|
||||
otp_code: "OTP code"
|
||||
password: "Password"
|
||||
port: "Port"
|
||||
protocol: "Protocol"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue