Browse Source

fix issue #1610

283
ThomasV 9 years ago
parent
commit
bd3f3c3554
  1. 4
      plugins/trustedcoin/qt.py

4
plugins/trustedcoin/qt.py

@ -260,7 +260,9 @@ class Plugin(TrustedCoinPlugin):
vbox = QVBoxLayout() vbox = QVBoxLayout()
if otp_secret is not None: if otp_secret is not None:
uri = "otpauth://totp/%s?secret=%s"%('trustedcoin.com', otp_secret) uri = "otpauth://totp/%s?secret=%s"%('trustedcoin.com', otp_secret)
vbox.addWidget(QLabel("Please scan this QR code in Google Authenticator.")) l = QLabel("Please scan the following QR code in Google Authenticator. You may as well use the following key: %s"%otp_secret)
l.setWordWrap(True)
vbox.addWidget(l)
qrw = QRCodeWidget(uri) qrw = QRCodeWidget(uri)
vbox.addWidget(qrw, 1) vbox.addWidget(qrw, 1)
msg = _('Then, enter your Google Authenticator code:') msg = _('Then, enter your Google Authenticator code:')

Loading…
Cancel
Save