oxtotp/src/metadata.php

89 lines
3.0 KiB
PHP
Raw Normal View History

2018-10-17 12:50:10 +02:00
<?php
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware.
*
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law.
*
* http://www.shopmodule.com
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link http://www.oxidmodule.com
*/
2018-10-17 23:48:20 +02:00
use D3\Totp\Setup as ModuleSetup;
2018-10-17 12:50:10 +02:00
use D3\ModCfg\Application\Model\d3utils;
use OxidEsales\Eshop\Application\Controller\Admin\LoginController;
use OxidEsales\Eshop\Core\Utils;
use OxidEsales\Eshop\Application\Controller as OxidController;
use OxidEsales\Eshop\Application\Model as OxidModel;
use OxidEsales\Eshop\Application\Component as OxidComponent;
use OxidEsales\Eshop\Core as OxidCore;
/**
* Metadata version
*/
$sMetadataVersion = '2.0';
$sModuleId = 'd3totp';
/**
* Module information
*/
2018-10-17 23:48:20 +02:00
$aModule = [
2018-10-17 12:50:10 +02:00
'id' => $sModuleId,
'title' =>
2018-10-17 15:46:55 +02:00
(class_exists(d3utils::class) ? d3utils::getInstance()->getD3Logo() : 'D&sup3;') . ' Zwei-Faktor-Authentisierung',
2018-10-17 23:48:20 +02:00
'description' => [
2018-10-17 15:46:55 +02:00
'de' => 'Zwei-Faktor-Authentisierung (TOTP) f&uuml;r OXID eSales Shop',
'en' => 'Two-factor authentication (TOTP) for OXID eSales shop',
2018-10-17 23:48:20 +02:00
],
2018-10-17 12:50:10 +02:00
'thumbnail' => 'picture.png',
2018-10-17 15:46:55 +02:00
'version' => '0.1',
2018-10-17 12:50:10 +02:00
'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com',
'url' => 'http://www.oxidmodule.com/',
2018-10-17 23:48:20 +02:00
'extend' => [
2018-10-17 15:46:55 +02:00
//OxidModel\User::class => \D3\Totp\Modules\Application\Model\d3_totp_user::class,
LoginController::class => \D3\Totp\Modules\Application\Controller\Admin\d3_totp_LoginController::class,
Utils::class => \D3\Totp\Modules\Core\d3_totp_utils::class,
2018-10-17 23:48:20 +02:00
],
'controllers' => [
'd3user_totp' => \D3\Totp\Application\Controller\Admin\d3user_totp::class
],
'templates' => [
'd3user_totp.tpl' => 'd3/totp/Application/views/admin/tpl/d3user_totp.tpl',
],
2018-10-17 12:50:10 +02:00
'events' => [
2018-10-17 23:48:20 +02:00
'onActivate' => '\D3\Totp\Setup\Events::onActivate',
'onDeactivate' => '\D3\Totp\Setup\Events::onDeactivate',
],
'settings' => [
],
'blocks' => [
[
'template' => 'login.tpl',
'block' => 'admin_login_form',
'file' => 'Application/views/admin/blocks/d3totp_login_admin_login_form.tpl',
]
],
'd3FileRegister' => [
2018-10-17 12:50:10 +02:00
],
2018-10-17 23:48:20 +02:00
'd3SetupClasses' => [
ModuleSetup\Installation::class
]
];
2018-10-17 12:50:10 +02:00
2018-10-17 15:46:55 +02:00
// CREATE TABLE `d3totp` (
// `OXID` CHAR(32) NOT NULL,
// `OXUSERID` CHAR(32) NOT NULL,
// `USETOTP` TINYINT(1) NOT NULL DEFAULT '0',
// `SEED` VARCHAR(100) NOT NULL DEFAULT '0',
// PRIMARY KEY (`OXID`),
2018-10-17 23:48:20 +02:00
// UNIQUE INDEX `Schl<68>ssel 2` (`OXUSERID`)
2018-10-17 15:46:55 +02:00
//)
//ENGINE=InnoDB
//;