[TASK] Move eID script to Resources/PHP folder 87/32687/2
authorNicole Cordes <typo3@cordes.co>
Tue, 9 Sep 2014 14:58:48 +0000 (16:58 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 9 Sep 2014 16:38:39 +0000 (18:38 +0200)
Resolves: #61478
Releases: 6.3
Change-Id: I81a8ae747e59649999c5372b51b8fc866a4dd4dd
Reviewed-on: http://review.typo3.org/32687
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/rsaauth/Resources/PHP/FrontendLoginRsaPublicKey.php [new file with mode: 0644]
typo3/sysext/rsaauth/Resources/Private/Php/FrontendLoginRsaPublicKey.php [deleted file]
typo3/sysext/rsaauth/ext_localconf.php

diff --git a/typo3/sysext/rsaauth/Resources/PHP/FrontendLoginRsaPublicKey.php b/typo3/sysext/rsaauth/Resources/PHP/FrontendLoginRsaPublicKey.php
new file mode 100644 (file)
index 0000000..8b183d3
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+/**
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+/** @var \TYPO3\CMS\Rsaauth\Backend\AbstractBackend $backend */
+$backend = \TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend();
+if ($backend !== NULL) {
+       $keyPair = $backend->createNewKeyPair();
+       $storage = \TYPO3\CMS\Rsaauth\Storage\StorageFactory::getStorage();
+       $storage->put($keyPair->getPrivateKey());
+       session_commit();
+
+       echo $keyPair->getPublicKeyModulus() . ':' . sprintf('%x', $keyPair->getExponent()) . ':';
+}
diff --git a/typo3/sysext/rsaauth/Resources/Private/Php/FrontendLoginRsaPublicKey.php b/typo3/sysext/rsaauth/Resources/Private/Php/FrontendLoginRsaPublicKey.php
deleted file mode 100644 (file)
index 8b183d3..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-
-/**
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/** @var \TYPO3\CMS\Rsaauth\Backend\AbstractBackend $backend */
-$backend = \TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend();
-if ($backend !== NULL) {
-       $keyPair = $backend->createNewKeyPair();
-       $storage = \TYPO3\CMS\Rsaauth\Storage\StorageFactory::getStorage();
-       $storage->put($keyPair->getPrivateKey());
-       session_commit();
-
-       echo $keyPair->getPublicKeyModulus() . ':' . sprintf('%x', $keyPair->getExponent()) . ':';
-}
index 8f0ea8d..f69640f 100644 (file)
@@ -35,6 +35,6 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displ
 
 // eID for FrontendLoginRsaPublicKey
 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['FrontendLoginRsaPublicKey'] =
-       'EXT:rsaauth/Resources/Private/Php/FrontendLoginRsaPublicKey.php';
+       'EXT:rsaauth/Resources/PHP/FrontendLoginRsaPublicKey.php';
 
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][] = 'TYPO3\\CMS\\Rsaauth\\Hook\\BackendHookForAjaxLogin->addRsaJsLibraries';
\ No newline at end of file