diff options
| -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 |
