Project

General

Profile

Bug #23370 ยป 15453.diff

Administrator Admin, 2010-08-13 19:02

View differences:

typo3/sysext/rsaauth/hooks/class.tx_rsaauth_loginformhook.php (Arbeitskopie)
class tx_rsaauth_loginformhook {
/**
* Adds RSA-specific JavaScript and returns a form tag
* Provides form code for the RSA authentication and returns a form tag
*
* @return string Form tag
*/
......
/**
* Provides form code for the superchallenged authentication.
* Adds RSA-specific JavaScript
*
* @param array $params Parameters to the script
* @param SC_index $pObj Calling object
* @return string The code for the login form
* @return void
*/
public function getLoginScripts(array $params, SC_index &$pObj) {
$content = '';
if ($pObj->loginSecurityLevel == 'rsa') {
$javascriptPath = t3lib_extMgm::siteRelPath('rsaauth') . 'resources/';
$javascriptPath = t3lib_extMgm::extRelPath('rsaauth') . 'resources/';
$files = array(
'jsbn/jsbn.js',
'jsbn/prng4.js',
......
'rsaauth_min.js'
);
$content = '';
foreach ($files as $file) {
$content .= '<script type="text/javascript" src="' .
t3lib_div::getIndpEnv('TYPO3_SITE_URL') .
$javascriptPath . $file . '"></script>';
$GLOBALS['TBE_TEMPLATE']->getPageRenderer()->addJsFile($javascriptPath . $file);
}
}
return $content;
}
}
    (1-1/1)