TYPO3 CMS  TYPO3_6-2
LoginFormHook.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Rsaauth\Hook;
3 
24 
33  public function getLoginFormTag(array $params, \TYPO3\CMS\Backend\Controller\LoginController &$pObj) {
34  $form = NULL;
35  if ($pObj->loginSecurityLevel === 'rsa') {
37  $pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
38  $javascriptPath = '../' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('rsaauth') . 'resources/';
39  $files = array(
40  'jsbn/jsbn.js',
41  'jsbn/prng4.js',
42  'jsbn/rng.js',
43  'jsbn/rsa.js',
44  'jsbn/base64.js',
45  'BackendLoginFormRsaEncryption.js'
46  );
47  foreach ($files as $file) {
48  $pageRenderer->addJsFile($javascriptPath . $file);
49  }
50 
51  return '<form action="index.php" id="typo3-login-form" method="post" name="loginform">';
52  }
53  return $form;
54  }
55 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]