fix issue #1610
This commit is contained in:
parent
3b10bd8307
commit
bd3f3c3554
|
@ -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…
Reference in New Issue