summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/otptoken_yubikey.py
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2014-11-06 15:30:13 -0500
committerPetr Vobornik <pvoborni@redhat.com>2014-11-19 14:26:00 +0100
commit3c900ba7a8d98a72ff4e040b688fe3213c722a64 (patch)
tree9c483cfae1a287662f41e9d51263c77746df7b85 /ipalib/plugins/otptoken_yubikey.py
parentd2ffd176176e20860998d29ede4e9bd65f398bf2 (diff)
downloadfreeipa-3c900ba7a8d98a72ff4e040b688fe3213c722a64.tar.gz
freeipa-3c900ba7a8d98a72ff4e040b688fe3213c722a64.tar.xz
freeipa-3c900ba7a8d98a72ff4e040b688fe3213c722a64.zip
Enable QR code display by default in otptoken-add
This is possible because python-qrcode's output now fits in a standard terminal. Also, update ipa-otp-import and otptoken-add-yubikey to disable QR code output as it doesn't make sense in these contexts. https://fedorahosted.org/freeipa/ticket/4703 Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'ipalib/plugins/otptoken_yubikey.py')
-rw-r--r--ipalib/plugins/otptoken_yubikey.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/otptoken_yubikey.py b/ipalib/plugins/otptoken_yubikey.py
index e70ddb6e4..7095887ac 100644
--- a/ipalib/plugins/otptoken_yubikey.py
+++ b/ipalib/plugins/otptoken_yubikey.py
@@ -124,6 +124,7 @@ class otptoken_add_yubikey(Command):
ipatokenotpalgorithm=u'sha1',
ipatokenhotpcounter=0,
ipatokenotpkey=key,
+ no_qrcode=True,
**options)
# Suppress values we don't want to return.