u2fKey = $u2fKey; } /** * @inheritdoc */ public function getJsLayout() { $this->jsLayout['components']['msp-twofactorauth-configure']['postUrl'] = $this->getUrl('*/*/configurepost'); $this->jsLayout['components']['msp-twofactorauth-configure']['successUrl'] = $this->getUrl($this->_urlBuilder->getStartupPageUrl()); $this->jsLayout['components']['msp-twofactorauth-configure']['touchImageUrl'] = $this->getViewFileUrl('MSP_TwoFactorAuth::images/u2f/touch.png'); $this->jsLayout['components']['msp-twofactorauth-configure']['registerData'] = $this->u2fKey->getRegisterData(); return parent::getJsLayout(); } }