2018-10-23 22:35:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2022-09-26 15:22:26 +02:00
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
2018-10-23 22:35:44 +02:00
|
|
|
*
|
2022-09-26 15:22:26 +02:00
|
|
|
* https://www.d3data.de
|
2018-10-23 22:35:44 +02:00
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
2022-09-26 15:22:26 +02:00
|
|
|
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
2018-10-23 22:35:44 +02:00
|
|
|
*/
|
|
|
|
|
2022-09-28 00:08:36 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-11-10 00:00:50 +01:00
|
|
|
use D3\Totp\Application\Controller\Admin\d3totpadminlogin;
|
2019-08-02 00:23:21 +02:00
|
|
|
use D3\Totp\Application\Controller\Admin\d3user_totp;
|
2022-09-13 17:00:52 +02:00
|
|
|
use D3\Totp\Application\Controller\Admin\d3force_2fa;
|
2019-08-02 23:58:20 +02:00
|
|
|
use D3\Totp\Application\Controller\d3_account_totp;
|
2019-08-02 00:23:21 +02:00
|
|
|
use D3\Totp\Application\Controller\d3totplogin;
|
|
|
|
use D3\Totp\Modules\Application\Component\d3_totp_UserComponent;
|
|
|
|
use D3\Totp\Modules\Application\Controller\Admin\d3_totp_LoginController;
|
|
|
|
use D3\Totp\Modules\Application\Controller\d3_totp_OrderController;
|
|
|
|
use D3\Totp\Modules\Application\Controller\d3_totp_PaymentController;
|
|
|
|
use D3\Totp\Modules\Application\Controller\d3_totp_UserController;
|
|
|
|
use D3\Totp\Modules\Application\Model\d3_totp_user;
|
|
|
|
use D3\Totp\Modules\Core\d3_totp_utils;
|
2018-10-23 22:35:44 +02:00
|
|
|
use D3\Totp\Setup as ModuleSetup;
|
2019-07-31 22:43:34 +02:00
|
|
|
use OxidEsales\Eshop\Application\Component\UserComponent;
|
2018-10-23 22:35:44 +02:00
|
|
|
use OxidEsales\Eshop\Application\Controller\Admin\LoginController;
|
2019-07-31 22:43:34 +02:00
|
|
|
use OxidEsales\Eshop\Application\Controller\OrderController;
|
|
|
|
use OxidEsales\Eshop\Application\Controller\PaymentController;
|
|
|
|
use OxidEsales\Eshop\Application\Controller\UserController;
|
2018-10-23 22:35:44 +02:00
|
|
|
use OxidEsales\Eshop\Core\Utils;
|
|
|
|
use OxidEsales\Eshop\Application\Model as OxidModel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Metadata version
|
|
|
|
*/
|
2022-09-28 00:08:36 +02:00
|
|
|
$sMetadataVersion = '2.1';
|
2018-10-23 22:35:44 +02:00
|
|
|
|
|
|
|
$sModuleId = 'd3totp';
|
2022-09-26 15:58:38 +02:00
|
|
|
$logo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em">';
|
|
|
|
|
2018-10-23 22:35:44 +02:00
|
|
|
/**
|
|
|
|
* Module information
|
|
|
|
*/
|
|
|
|
$aModule = [
|
|
|
|
'id' => $sModuleId,
|
|
|
|
'title' => [
|
2022-09-28 00:08:36 +02:00
|
|
|
'de' => $logo . ' Zwei-Faktor-Authentisierung',
|
|
|
|
'en' => $logo . ' two-factor authentication',
|
2018-10-23 22:35:44 +02:00
|
|
|
],
|
|
|
|
'description' => [
|
|
|
|
'de' => 'Zwei-Faktor-Authentisierung (TOTP) für OXID eSales Shop',
|
|
|
|
'en' => 'Two-factor authentication (TOTP) for OXID eSales shop',
|
|
|
|
],
|
2022-11-09 10:24:55 +01:00
|
|
|
'version' => '2.0.0.1',
|
2018-10-23 22:35:44 +02:00
|
|
|
'author' => 'D³ Data Development (Inh.: Thomas Dartsch)',
|
|
|
|
'email' => 'support@shopmodule.com',
|
2022-09-28 00:08:36 +02:00
|
|
|
'url' => 'https://www.oxidmodule.com/',
|
2018-10-23 22:35:44 +02:00
|
|
|
'extend' => [
|
2019-08-02 00:23:21 +02:00
|
|
|
UserController::class => d3_totp_UserController::class,
|
|
|
|
PaymentController::class => d3_totp_PaymentController::class,
|
|
|
|
OrderController::class => d3_totp_OrderController::class,
|
|
|
|
OxidModel\User::class => d3_totp_user::class,
|
|
|
|
LoginController::class => d3_totp_LoginController::class,
|
|
|
|
Utils::class => d3_totp_utils::class,
|
|
|
|
UserComponent::class => d3_totp_UserComponent::class,
|
2018-10-23 22:35:44 +02:00
|
|
|
],
|
|
|
|
'controllers' => [
|
2019-08-02 00:23:21 +02:00
|
|
|
'd3user_totp' => d3user_totp::class,
|
2022-09-13 17:00:52 +02:00
|
|
|
'd3force_2fa' => d3force_2fa::class,
|
2019-08-02 23:58:20 +02:00
|
|
|
'd3totplogin' => d3totplogin::class,
|
|
|
|
'd3_account_totp' => d3_account_totp::class,
|
2022-11-10 00:00:50 +01:00
|
|
|
'd3totpadminlogin' => d3totpadminlogin::class
|
2018-10-23 22:35:44 +02:00
|
|
|
],
|
2019-08-02 23:58:20 +02:00
|
|
|
'templates' => [
|
|
|
|
'd3user_totp.tpl' => 'd3/totp/Application/views/admin/tpl/d3user_totp.tpl',
|
|
|
|
'd3totplogin.tpl' => 'd3/totp/Application/views/tpl/d3totplogin.tpl',
|
|
|
|
'd3_account_totp.tpl' => 'd3/totp/Application/views/tpl/d3_account_totp.tpl',
|
2022-11-10 00:00:50 +01:00
|
|
|
'd3totpadminlogin.tpl' => 'd3/totp/Application/views/admin/tpl/d3totplogin.tpl',
|
2018-10-23 22:35:44 +02:00
|
|
|
],
|
2022-09-13 17:00:52 +02:00
|
|
|
'settings' => [
|
|
|
|
[
|
2022-09-28 00:08:36 +02:00
|
|
|
'group' => 'd3totp_main',
|
2022-09-13 17:00:52 +02:00
|
|
|
'name' => 'D3_TOTP_ADMIN_FORCE_2FA',
|
|
|
|
'type' => 'bool',
|
|
|
|
'value' => false,
|
2022-09-30 21:06:30 +02:00
|
|
|
],
|
2022-09-13 17:00:52 +02:00
|
|
|
],
|
2018-10-23 22:35:44 +02:00
|
|
|
'events' => [
|
2022-09-28 00:08:36 +02:00
|
|
|
'onActivate' => ModuleSetup\Events::class.'::onActivate',
|
|
|
|
'onDeactivate' => ModuleSetup\Events::class.'::onDeactivate',
|
2018-10-23 22:35:44 +02:00
|
|
|
],
|
|
|
|
'blocks' => [
|
|
|
|
[
|
|
|
|
'template' => 'login.tpl',
|
|
|
|
'block' => 'admin_login_form',
|
|
|
|
'file' => 'Application/views/admin/blocks/d3totp_login_admin_login_form.tpl',
|
2019-08-02 00:23:21 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'template' => 'page/account/inc/account_menu.tpl',
|
|
|
|
'block' => 'account_menu',
|
|
|
|
'file' => 'Application/views/blocks/page/account/inc/account_menu.tpl',
|
2022-09-13 17:00:52 +02:00
|
|
|
],
|
2022-09-30 21:06:30 +02:00
|
|
|
],
|
2018-10-23 22:35:44 +02:00
|
|
|
];
|