diff options
| author | mokha <mokha@cisco.com> | 2018-12-02 22:12:49 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-12-02 22:12:49 -0700 |
| commit | c3a168963f062a348719c7714ac39bf8f53f0ed5 (patch) | |
| tree | 8f41724604f6b12bc53d18856684858eeb80fa6d | |
| parent | db3a11c66a9a7ec5751a2001897bd962b4d35e4a (diff) | |
decrease quiet zone size.
| -rw-r--r-- | lib/tfa/cli.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tfa/cli.rb b/lib/tfa/cli.rb index 4493db0..529d2f8 100644 --- a/lib/tfa/cli.rb +++ b/lib/tfa/cli.rb @@ -26,7 +26,9 @@ module TFA case options[:format] when "qrcode" require 'rqrcode' - RQRCode::QRCode.new("otpauth://totp/unknown@example.org?secret=#{secret}&issuer=#{name}").as_ansi + RQRCode::QRCode.new("otpauth://totp/unknown@example.org?secret=#{secret}&issuer=#{name}").as_ansi( + light: "\033[47m", dark: "\033[40m", fill_character: ' ', quiet_zone_size: 1 + ) else secret end |
