diff options
Diffstat (limited to 'lib/tfa/totp_command.rb')
| -rw-r--r-- | lib/tfa/totp_command.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tfa/totp_command.rb b/lib/tfa/totp_command.rb index 14bc064..57f0cc4 100644 --- a/lib/tfa/totp_command.rb +++ b/lib/tfa/totp_command.rb @@ -4,8 +4,7 @@ module TFA @storage = storage end - def run(name) - secret = secret_for(name) + def run(name, secret = secret_for(name)) secret ? password_for(secret) : all_passwords end |
