var me = this.getView();
var viewmodel = this.getViewModel();
+ me.qrdiv = document.createElement('center');
+ me.qrcode = new QRCode(me.qrdiv, {
+ width: 256,
+ height: 256,
+ correctLevel: QRCode.CorrectLevel.M
+ });
me.down('#qrbox').getEl().appendChild(me.qrdiv);
viewmodel.set('has_tfa', me.hasTFA);
labelWidth: 120,
reference: 'challenge',
padding: '0 5',
- emptyText: gettext('verify TOTP authentication code')
+ emptyText: gettext('Scan QR code and enter TOTP auth. code to verify')
}
]
},
initComponent: function() {
var me = this;
- me.qrdiv = document.createElement('center');
- me.qrcode = new QRCode(me.qrdiv, {
- width: 256,
- height: 256,
- correctLevel: QRCode.CorrectLevel.M
- });
-
var store = new Ext.data.Store({
model: 'pve-domains',
autoLoad: true