lib/tfa/totp_command.rb in tfa-0.0.12 vs lib/tfa/totp_command.rb in tfa-0.0.13
- old
+ new
@@ -2,11 +2,10 @@
class TotpCommand
def initialize(storage)
@storage = storage
end
- def run(name)
- secret = secret_for(name)
+ def run(name, secret = secret_for(name))
secret ? password_for(secret) : all_passwords
end
private