Version Notes
Removed overwritten tabs block. Using now an observer event.
Download this release
Release Info
Developer | Magento Core Team |
Extension | N98_Yubikey |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/community/N98/Yubikey/Model/Observer.php
CHANGED
@@ -109,13 +109,18 @@ class N98_Yubikey_Model_Observer
|
|
109 |
/* @var $block Mage_Adminhtml_Block_Permissions_User_Edit_Tabs */
|
110 |
|
111 |
if ($block instanceof Mage_Adminhtml_Block_Permissions_User_Edit_Tabs) {
|
112 |
-
$
|
113 |
'label' => Mage::helper('n98_yubikey')->__('Yubikey setup'),
|
114 |
'title' => Mage::helper('n98_yubikey')->__('Yubikey setup'),
|
115 |
'content' => $block->getLayout()->createBlock('n98_yubikey/adminhtml_permission_user_edit_tab_yubikey')->toHtml(),
|
116 |
'active' => true
|
117 |
-
)
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
119 |
}
|
120 |
}
|
121 |
}
|
109 |
/* @var $block Mage_Adminhtml_Block_Permissions_User_Edit_Tabs */
|
110 |
|
111 |
if ($block instanceof Mage_Adminhtml_Block_Permissions_User_Edit_Tabs) {
|
112 |
+
$tabData = array(
|
113 |
'label' => Mage::helper('n98_yubikey')->__('Yubikey setup'),
|
114 |
'title' => Mage::helper('n98_yubikey')->__('Yubikey setup'),
|
115 |
'content' => $block->getLayout()->createBlock('n98_yubikey/adminhtml_permission_user_edit_tab_yubikey')->toHtml(),
|
116 |
'active' => true
|
117 |
+
);
|
118 |
+
if (method_exists($block, 'addTabAfter')) {
|
119 |
+
// >= CE 1.6
|
120 |
+
$block->addTabAfter('yubikey_section', $tabData, 'roles_section');
|
121 |
+
} else {
|
122 |
+
$block->addTab('yubikey_section', $tabData);
|
123 |
+
}
|
124 |
}
|
125 |
}
|
126 |
}
|
app/code/community/N98/Yubikey/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<N98_Yubikey>
|
5 |
-
<version>1.0.
|
6 |
</N98_Yubikey>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<N98_Yubikey>
|
5 |
+
<version>1.0.2</version>
|
6 |
</N98_Yubikey>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/N98/Yubikey/sql/n98_yubikey_setup/mysql4-install-1.0.0.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$installer = $this;
|
4 |
+
/* @var $installer Mage_Core_Model_Resource_Setup */
|
5 |
+
|
6 |
+
$installer->startSetup();
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Add yubikey field to table 'admin/user'
|
10 |
+
*/
|
11 |
+
$installer->getConnection()->addColumn($this->getTable('admin/user'), 'yubikey', 'varchar(12) null');
|
12 |
+
|
13 |
+
$installer->endSetup();
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>N98_Yubikey</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -9,10 +9,10 @@
|
|
9 |
<summary>Enables yubikey support to admin login.</summary>
|
10 |
<description>Enables yubikey support to admin login.</description>
|
11 |
<notes>Removed overwritten tabs block. Using now an observer event.</notes>
|
12 |
-
<authors><author><name>netz98 new media GmbH</name><user>
|
13 |
-
<date>2012-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="N98"><dir name="Yubikey"><dir name="Block"><dir name="Adminhtml"><dir name="Permission"><dir name="User"><dir name="Edit"><dir name="Tab"><file name="Yubikey.php" hash="51e0b73f433833b91ddf1723145dfc8d"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4ce4b0011885e1bbd497dafd5107dad2"/></dir><dir name="Model"><file name="Auth.php" hash="eb8a8d8197183ca9e0ebb8426188bff3"/><file name="Config.php" hash="55eebbebbe9fd548879e43bf22413c83"/><file name="Observer.php" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>N98_Yubikey</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Enables yubikey support to admin login.</summary>
|
10 |
<description>Enables yubikey support to admin login.</description>
|
11 |
<notes>Removed overwritten tabs block. Using now an observer event.</notes>
|
12 |
+
<authors><author><name>netz98 new media GmbH</name><user>auto-converted</user><email>magento@netz98.de</email></author></authors>
|
13 |
+
<date>2012-03-03</date>
|
14 |
+
<time>15:13:28</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="N98"><dir name="Yubikey"><dir name="Block"><dir name="Adminhtml"><dir name="Permission"><dir name="User"><dir name="Edit"><dir name="Tab"><file name="Yubikey.php" hash="51e0b73f433833b91ddf1723145dfc8d"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4ce4b0011885e1bbd497dafd5107dad2"/></dir><dir name="Model"><file name="Auth.php" hash="eb8a8d8197183ca9e0ebb8426188bff3"/><file name="Config.php" hash="55eebbebbe9fd548879e43bf22413c83"/><file name="Observer.php" hash="304b89f3684e5521f8955ab71e814fbd"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="YubikeyController.php" hash="bb985baa3fd4bcd73bc5630a669df668"/></dir></dir><dir name="etc"><file name="config.xml" hash="c5e3677c4a995872ee4a4b70ef374da8"/><file name="system.xml" hash="a2d81528a5440a8ed4b0997e97e1196b"/></dir><dir name="sql"><dir name="n98_yubikey_setup"><file name="install-1.0.0.php" hash="e29fde7500032491d3692cdbd5ab0766"/><file name="mysql4-install-1.0.0.php" hash="5c1b7692572d137be93de00944902906"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="n98_yubikey.xml" hash="ba0ac4c7b3ab434e7e05452384298034"/></dir><dir name="template"><dir name="n98_yubikey"><file name="login.phtml" hash="275b2dd71d947d19173208c0a813ad0f"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="N98_Yubikey.csv" hash="8e503219cc5fe885851cd5ae2defe7ec"/></dir><dir name="en_US"><file name="N98_Yubikey.csv" hash="7691953b0a32fa0a960de1aa3eb8ca39"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="n98_yubikey"><file name="yubiright_16x16.gif" hash="9346ef9d8d719916d92c15a785f8b48a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="N98_Yubikey.xml" hash="9c73d2a127559d9a8cd73d055c1eb22c"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
</package>
|