Version Notes
==1.0.4==
Bug fixes
Download this release
Release Info
Developer | miniOrange inc. |
Extension | miniOrange_2factor |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
app/code/community/miniOrange/2factor/Helper/Data.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
class MiniOrange_2factor_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
{
|
4 |
-
public $hostname = "https://
|
5 |
|
6 |
function adminExists($username){
|
7 |
$adminuser = Mage::getModel('admin/user');
|
1 |
<?php
|
2 |
class MiniOrange_2factor_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
{
|
4 |
+
public $hostname = "https://auth.miniorange.com";
|
5 |
|
6 |
function adminExists($username){
|
7 |
$adminuser = Mage::getModel('admin/user');
|
app/code/community/miniOrange/2factor/Helper/mo2fUtility.php
CHANGED
@@ -25,7 +25,7 @@ class MiniOrange_2factor_Helper_mo2fUtility extends Mage_Core_Helper_Abstract{
|
|
25 |
|
26 |
public $email;
|
27 |
public $phone;
|
28 |
-
public $hostname = "https://
|
29 |
public $pluginName = 'Magento 2 Factor Authentication Plugin';
|
30 |
|
31 |
function check_customer($email){
|
25 |
|
26 |
public $email;
|
27 |
public $phone;
|
28 |
+
public $hostname = "https://auth.miniorange.com";
|
29 |
public $pluginName = 'Magento 2 Factor Authentication Plugin';
|
30 |
|
31 |
function check_customer($email){
|
app/code/community/miniOrange/2factor/etc/config.xml
CHANGED
@@ -2,24 +2,40 @@
|
|
2 |
|
3 |
<!-- The root node for Magento module configuration -->
|
4 |
<config>
|
5 |
-
|
6 |
-
|
7 |
<!-- The module's node contains basic information about each Magento module -->
|
8 |
<modules>
|
9 |
<!-- This must exactly match the namespace and module's folder names, with directory separators replaced by underscores -->
|
10 |
<MiniOrange_2factor>
|
11 |
<!-- The version of our module -->
|
12 |
-
<version>1.0.
|
13 |
</MiniOrange_2factor>
|
14 |
</modules>
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<!-- we are making changes to the backend -->
|
18 |
<admin>
|
19 |
<routers>
|
|
|
20 |
<adminhtml>
|
21 |
<args>
|
22 |
-
|
23 |
<MiniOrange_2factor_Adminhtml>MiniOrange_2factor_Adminhtml_Login</MiniOrange_2factor_Adminhtml>
|
24 |
</modules>
|
25 |
</args>
|
@@ -41,6 +57,7 @@
|
|
41 |
</miniorange_2factor_admin_layout>
|
42 |
</updates>
|
43 |
</layout>
|
|
|
44 |
<menu>
|
45 |
<miniOrange translate="title">
|
46 |
<title>miniOrange</title>
|
@@ -56,7 +73,6 @@
|
|
56 |
</menu>
|
57 |
</adminhtml>
|
58 |
|
59 |
-
|
60 |
<!-- Configure our module's behavior in the global scope -->
|
61 |
<global>
|
62 |
<models>
|
@@ -64,23 +80,18 @@
|
|
64 |
<class>MiniOrange_2factor_Model</class>
|
65 |
</MiniOrange_2factor>
|
66 |
</models>
|
67 |
-
|
68 |
-
|
69 |
<!-- Definition of our blocks -->
|
70 |
<blocks>
|
71 |
<MiniOrange_2factor>
|
72 |
<class>MiniOrange_2factor_Block</class>
|
73 |
</MiniOrange_2factor>
|
74 |
</blocks>
|
75 |
-
|
76 |
-
|
77 |
<!-- Declaration for the helper class-->
|
78 |
<helpers>
|
79 |
<MiniOrange_2factor>
|
80 |
<class>MiniOrange_2factor_Helper</class>
|
81 |
</MiniOrange_2factor>
|
82 |
</helpers>
|
83 |
-
|
84 |
<!-- Defining our event observer -->
|
85 |
<events>
|
86 |
<controller_action_predispatch>
|
@@ -91,9 +102,44 @@
|
|
91 |
</miniorange_2factor_login>
|
92 |
</observers>
|
93 |
</controller_action_predispatch>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
</events>
|
95 |
-
|
96 |
-
|
97 |
<!-- Defining our resources -->
|
98 |
<resources>
|
99 |
<MiniOrange_2factor_setup>
|
@@ -102,8 +148,5 @@
|
|
102 |
</setup>
|
103 |
</MiniOrange_2factor_setup>
|
104 |
</resources>
|
105 |
-
|
106 |
</global>
|
107 |
-
|
108 |
-
|
109 |
</config>
|
2 |
|
3 |
<!-- The root node for Magento module configuration -->
|
4 |
<config>
|
|
|
|
|
5 |
<!-- The module's node contains basic information about each Magento module -->
|
6 |
<modules>
|
7 |
<!-- This must exactly match the namespace and module's folder names, with directory separators replaced by underscores -->
|
8 |
<MiniOrange_2factor>
|
9 |
<!-- The version of our module -->
|
10 |
+
<version>1.0.4</version>
|
11 |
</MiniOrange_2factor>
|
12 |
</modules>
|
13 |
+
<!-- We are making changes to the frontend-->
|
14 |
+
<frontend>
|
15 |
+
<routers>
|
16 |
+
<MiniOrange_2factor_customer>
|
17 |
+
<use>standard</use>
|
18 |
+
<args>
|
19 |
+
<module>MiniOrange_2factor_Customer</module>
|
20 |
+
<frontName>twofactorauth</frontName>
|
21 |
+
</args>
|
22 |
+
</MiniOrange_2factor_customer>
|
23 |
+
</routers>
|
24 |
+
<layout>
|
25 |
+
<updates>
|
26 |
+
<miniOrange_2factor_layout>
|
27 |
+
<file>miniorange_2factor_layout.xml</file>
|
28 |
+
</miniOrange_2factor_layout>
|
29 |
+
</updates>
|
30 |
+
</layout>
|
31 |
+
</frontend>
|
32 |
<!-- we are making changes to the backend -->
|
33 |
<admin>
|
34 |
<routers>
|
35 |
+
<!-- Adding our module to the admin page-->
|
36 |
<adminhtml>
|
37 |
<args>
|
38 |
+
<modules>
|
39 |
<MiniOrange_2factor_Adminhtml>MiniOrange_2factor_Adminhtml_Login</MiniOrange_2factor_Adminhtml>
|
40 |
</modules>
|
41 |
</args>
|
57 |
</miniorange_2factor_admin_layout>
|
58 |
</updates>
|
59 |
</layout>
|
60 |
+
<!-- Adding a tab to the admin navbar -->
|
61 |
<menu>
|
62 |
<miniOrange translate="title">
|
63 |
<title>miniOrange</title>
|
73 |
</menu>
|
74 |
</adminhtml>
|
75 |
|
|
|
76 |
<!-- Configure our module's behavior in the global scope -->
|
77 |
<global>
|
78 |
<models>
|
80 |
<class>MiniOrange_2factor_Model</class>
|
81 |
</MiniOrange_2factor>
|
82 |
</models>
|
|
|
|
|
83 |
<!-- Definition of our blocks -->
|
84 |
<blocks>
|
85 |
<MiniOrange_2factor>
|
86 |
<class>MiniOrange_2factor_Block</class>
|
87 |
</MiniOrange_2factor>
|
88 |
</blocks>
|
|
|
|
|
89 |
<!-- Declaration for the helper class-->
|
90 |
<helpers>
|
91 |
<MiniOrange_2factor>
|
92 |
<class>MiniOrange_2factor_Helper</class>
|
93 |
</MiniOrange_2factor>
|
94 |
</helpers>
|
|
|
95 |
<!-- Defining our event observer -->
|
96 |
<events>
|
97 |
<controller_action_predispatch>
|
102 |
</miniorange_2factor_login>
|
103 |
</observers>
|
104 |
</controller_action_predispatch>
|
105 |
+
<!--
|
106 |
+
@use this to get controller info of a page along with the log compiled layout method in observer
|
107 |
+
<controller_action_layout_generate_blocks_before>
|
108 |
+
<observers>
|
109 |
+
<miniorange_2factor_layout_observe>
|
110 |
+
<class>MiniOrange_2factor/observer</class>
|
111 |
+
<method>logCompiledLayout</method>
|
112 |
+
</miniorange_2factor_layout_observe>
|
113 |
+
</observers>
|
114 |
+
</controller_action_layout_generate_blocks_before>
|
115 |
+
-->
|
116 |
+
<customer_login>
|
117 |
+
<observers>
|
118 |
+
<miniorange_login>
|
119 |
+
<class>MiniOrange_2factor/observer</class>
|
120 |
+
<method>customerLogin</method>
|
121 |
+
</miniorange_login>
|
122 |
+
</observers>
|
123 |
+
</customer_login>
|
124 |
+
<customer_customer_authenticated>
|
125 |
+
<observers>
|
126 |
+
<miniorange_login_authenticated>
|
127 |
+
<type>singleton</type>
|
128 |
+
<class>MiniOrange_2factor/observer</class>
|
129 |
+
<method>customerAuthenticateAfter</method>
|
130 |
+
</miniorange_login_authenticated>
|
131 |
+
</observers>
|
132 |
+
</customer_customer_authenticated>
|
133 |
+
<miniOrange_validation_event>
|
134 |
+
<observers>
|
135 |
+
<validation>
|
136 |
+
<type>singleton</type>
|
137 |
+
<class>MiniOrange_2factor/observer</class>
|
138 |
+
<method>validationHandler</method>
|
139 |
+
</validation>
|
140 |
+
</observers>
|
141 |
+
</miniOrange_validation_event>
|
142 |
</events>
|
|
|
|
|
143 |
<!-- Defining our resources -->
|
144 |
<resources>
|
145 |
<MiniOrange_2factor_setup>
|
148 |
</setup>
|
149 |
</MiniOrange_2factor_setup>
|
150 |
</resources>
|
|
|
151 |
</global>
|
|
|
|
|
152 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>miniOrange_2factor</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
@@ -61,12 +61,12 @@ You can choose from any of the above authentication methods to augment your pass
|
|
61 |
Contact Us
|
62 |

|
63 |
For support please email us at info@miniorange.com or call us at +1 978 658 9387</description>
|
64 |
-
<notes>==1.0.
|
65 |
Bug fixes</notes>
|
66 |
<authors><author><name>miniOrange inc.</name><user>miniOrange</user><email>info@miniorange.com</email></author></authors>
|
67 |
<date>2015-08-26</date>
|
68 |
-
<time>12:
|
69 |
-
<contents><target name="magecommunity"><dir name="miniOrange"><dir name="2factor"><dir name="Block"><file name="mo2fConfig.php" hash="c186ecae80ba3945783d95712165f26a"/></dir><dir name="Controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="acef2dddf89298d518291c3cdbfd2d48"/><dir name="Login"><file name="miniOrangeController.php" hash="78d1f305733dc764a87229ea4646a479"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
70 |
<compatible/>
|
71 |
<dependencies><required><php><min>5.3.10</min><max>5.6.11</max></php><extension><name>curl</name><min>7.40.0</min><max>7.44.0</max></extension></required></dependencies>
|
72 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>miniOrange_2factor</name>
|
4 |
+
<version>1.0.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
61 |
Contact Us
|
62 |

|
63 |
For support please email us at info@miniorange.com or call us at +1 978 658 9387</description>
|
64 |
+
<notes>==1.0.4==
|
65 |
Bug fixes</notes>
|
66 |
<authors><author><name>miniOrange inc.</name><user>miniOrange</user><email>info@miniorange.com</email></author></authors>
|
67 |
<date>2015-08-26</date>
|
68 |
+
<time>12:17:34</time>
|
69 |
+
<contents><target name="magecommunity"><dir name="miniOrange"><dir name="2factor"><dir name="Block"><file name="mo2fConfig.php" hash="c186ecae80ba3945783d95712165f26a"/></dir><dir name="Controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="acef2dddf89298d518291c3cdbfd2d48"/><dir name="Login"><file name="miniOrangeController.php" hash="78d1f305733dc764a87229ea4646a479"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="c90ef98e0f72abd5c74558bbac00cc86"/><file name="mo2fUtility.php" hash="e6d60914e7ee4dd4d868290594860bcc"/></dir><dir name="Model"><file name="Observer.php" hash="b14c81c7622df4d1ea2276e0d46e36d0"/><file name="Words.php" hash="ee26cc8582d5bbad5632a6e02129f815"/></dir><dir name="etc"><file name="adminhtml.xml" hash="955f9f87d1a5df39eea9fd69379af0ee"/><file name="config.xml" hash="b848a5790d0f87f572a5cf00a3fb7120"/></dir><dir name="sql"><dir name="MiniOrange_2factor_setup"><file name="mysql4-install-0.0.1.php" hash="d48e85b9510d3a29784e75315b3c8ae4"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="miniorange_2factor_admin.xml" hash="49671205b07f54681d1f93fec9ee4d67"/></dir><dir name="template"><dir name="miniorange_2factor"><file name="login.phtml" hash="36f8b7177bafaf4e916b1d9e5f382e50"/><file name="mo2fConfig.phtml" hash="335e3975d294f4f39666913bdbe031fc"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="miniorange_2factor.xml" hash="609cb91239fb4a89f64ae28d4b5b5398"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="MiniOrange_2factor"><file name="appstore.png" hash="1ac5eb0f971fd8cbeac4d3e4449cd9f0"/><file name="arrow.png" hash="47bdba61de621d8ca74c16f6dd5b6565"/><file name="authenticate.png" hash="052bcae5504f3a9c61365ecf8ab0c4e7"/><file name="authvalidate.png" hash="a01eaf3a0002b3e7115813fd4e4efe1a"/><file name="cachesetting.png" hash="15942adf97c0d48abdf2c583c94eb4f5"/><file name="clickconfiguremobile.png" hash="3ee49ca9596e3ad507d66aca43466ea3"/><file name="clickconfiguremobile2.png" hash="fc0ff15007ea57e3ceef75235056dc88"/><file name="configurefirsttime.png" hash="c6982bcd3f70080d893e3da11d2a77d8"/><file name="configuremobile.png" hash="013d6599af7a31fb53a895d877ab1ffe"/><file name="forgot-phone.png" hash="64cfe82547e4db88d025346477025cfe"/><file name="forgotphone.png" hash="4272645ec478f1479fc3dc56df5dd89b"/><file name="loggedin.png" hash="70cc5cad9c475ef9420aa3d70bc43102"/><file name="login1.png" hash="c0dce259d0e2e84957ba77c6e2e78abb"/><file name="login2.png" hash="99e2c32c2fd5f9c9acf6a8002e1d44ac"/><file name="login3.png" hash="305c7bbdb97da888970b7225641757f0"/><file name="loginsettings.png" hash="811b9792a0e47f7e483d01a7ded0ccd0"/><file name="mail.png" hash="751f9588f2e2aac3ec47a6b0ebb2fa4d"/><file name="miniorange_logo.png" hash="b1cd21c2deeb5f199fb55de487bf950b"/><file name="mobileconfigurebutton.png" hash="747a6057cd50099e1cb3b5041320bd85"/><file name="mobilescan.png" hash="dec68c53b12944a45140d909af803fdd"/><file name="mobilesuccess.png" hash="d977fd41088cf0677f33e77de13da56c"/><file name="otp.png" hash="74dc1d7644af2013d256852d26bc920b"/><file name="phone-offline.png" hash="81b25f8125b13fd4d96c23a6fa84574e"/><file name="playStore.png" hash="fbca6f8b28d05c3bcd833965289a20c2"/><file name="processing.png" hash="56b1a14bd1558354250a7a232a4d16e7"/><file name="register.png" hash="37be41049f1d79215322a8cf908bf7b3"/><file name="right.png" hash="2321d72c95ee1fd5708199f56f213136"/><file name="savecache.png" hash="cf686304f47b080ec98930be8bb0f869"/><file name="scanqr.png" hash="dc4c1d070d9b336c790cd2d1d5315ee6"/><file name="sendingotp.png" hash="28c93249e717916d0f3c974b1cd2af7d"/><file name="settings.png" hash="a3e0382615d3f19f5a0dab4d4accbf2d"/><file name="softokenmobile.png" hash="624d589cdfa031df456e25a2ff034e63"/><file name="softtoken.png" hash="804bd9b0a3a600e6f349a6aa4ea00899"/><file name="sync.png" hash="8fffca24e6184fc3f9af8e20feac430b"/><file name="wrong.png" hash="6bd49538f79c4722610c5535f38213af"/></dir></dir></dir></dir></dir></target></contents>
|
70 |
<compatible/>
|
71 |
<dependencies><required><php><min>5.3.10</min><max>5.6.11</max></php><extension><name>curl</name><min>7.40.0</min><max>7.44.0</max></extension></required></dependencies>
|
72 |
</package>
|