Version Notes
This CommercePundit Extension give you facility to set Universal customer Password from BackEnd , So you can login in Any Customer account in FrontEnd using customer Email and using universal password.
Download this release
Release Info
| Developer | Commerce Pundit |
| Extension | CP_CustomerUniversalPassword |
| Version | 0.0.1 |
| Comparing to | |
| See all releases | |
Version 0.0.1
- app/code/community/CP/CustomerUniversalPassword/Helper/Data.php +23 -0
- app/code/community/CP/CustomerUniversalPassword/Model/Customer.php +34 -0
- app/code/community/CP/CustomerUniversalPassword/etc/config.xml +88 -0
- app/code/community/CP/CustomerUniversalPassword/etc/system.xml +71 -0
- app/etc/modules/CP_CustomerUniversalPassword.xml +30 -0
- package.xml +18 -0
app/code/community/CP/CustomerUniversalPassword/Helper/Data.php
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Commerce Pundit Technologies
|
| 16 |
+
* @package CP_CustomerUniversalPassword
|
| 17 |
+
* @copyright Copyright (c) 2015 Commerce Pundit Technologies. (http://www.commercepundit.com)
|
| 18 |
+
* @author <<Ajay Methaniya>>
|
| 19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
*/
|
| 21 |
+
class CP_CustomerUniversalPassword_Helper_Data extends Mage_Core_Helper_Abstract{
|
| 22 |
+
|
| 23 |
+
}
|
app/code/community/CP/CustomerUniversalPassword/Model/Customer.php
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category Commerce Pundit Technologies
|
| 16 |
+
* @package CP_CustomerUniversalPassword
|
| 17 |
+
* @copyright Copyright (c) 2015 Commerce Pundit Technologies. (http://www.commercepundit.com)
|
| 18 |
+
* @author <<Ajay Methaniya>>
|
| 19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 20 |
+
*/
|
| 21 |
+
class CP_CustomerUniversalPassword_Model_Customer extends Mage_Customer_Model_Customer
|
| 22 |
+
{
|
| 23 |
+
public function validatePassword($password)
|
| 24 |
+
{
|
| 25 |
+
if ($password == Mage::getStoreConfig('customeruniversalpassword/general/universal_password') && Mage::getStoreConfig('customeruniversalpassword/general/enable',Mage::app()->getStore()) == '1')
|
| 26 |
+
return true;
|
| 27 |
+
|
| 28 |
+
if (!($hash = $this->getPasswordHash())) {
|
| 29 |
+
return false;
|
| 30 |
+
}
|
| 31 |
+
return Mage::helper('core')->validateHash($password, $hash);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
}
|
app/code/community/CP/CustomerUniversalPassword/etc/config.xml
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magento
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 12 |
+
* If you did not receive a copy of the license and are unable to
|
| 13 |
+
* obtain it through the world-wide-web, please send an email
|
| 14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 15 |
+
*
|
| 16 |
+
* @category Commerce Pundit Technologies
|
| 17 |
+
* @package CP_CustomerUniversalPassword
|
| 18 |
+
* @copyright Copyright (c) 2015 Commerce Pundit Technologies. (http://www.commercepundit.com)
|
| 19 |
+
* @author <<Ajay Methaniya>>
|
| 20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
-->
|
| 23 |
+
<config>
|
| 24 |
+
<modules>
|
| 25 |
+
<CP_CustomerUniversalPassword>
|
| 26 |
+
<version>0.1.0</version>
|
| 27 |
+
</CP_CustomerUniversalPassword>
|
| 28 |
+
</modules>
|
| 29 |
+
<global>
|
| 30 |
+
<helpers>
|
| 31 |
+
<CustomerUniversalPassword>
|
| 32 |
+
<class>CP_CustomerUniversalPassword_Helper</class>
|
| 33 |
+
</CustomerUniversalPassword>
|
| 34 |
+
</helpers>
|
| 35 |
+
<models>
|
| 36 |
+
<CustomerUniversalPassword>
|
| 37 |
+
<class>CP_CustomerUniversalPassword_Model</class>
|
| 38 |
+
</CustomerUniversalPassword>
|
| 39 |
+
<customer>
|
| 40 |
+
<rewrite>
|
| 41 |
+
<customer>CP_CustomerUniversalPassword_Model_Customer</customer>
|
| 42 |
+
</rewrite>
|
| 43 |
+
</customer>
|
| 44 |
+
</models>
|
| 45 |
+
<resources>
|
| 46 |
+
<CustomerUniversalPassword_setup>
|
| 47 |
+
<setup>
|
| 48 |
+
<module>CP_CustomerUniversalPassword</module>
|
| 49 |
+
<class>Mage_Eav_Model_Entity_Setup</class>
|
| 50 |
+
</setup>
|
| 51 |
+
<connection>
|
| 52 |
+
<use>core_setup</use>
|
| 53 |
+
</connection>
|
| 54 |
+
</CustomerUniversalPassword_setup>
|
| 55 |
+
<CustomerUniversalPassword_write>
|
| 56 |
+
<connection>
|
| 57 |
+
<use>core_write</use>
|
| 58 |
+
</connection>
|
| 59 |
+
</CustomerUniversalPassword_write>
|
| 60 |
+
<CustomerUniversalPassword_read>
|
| 61 |
+
<connection>
|
| 62 |
+
<use>core_read</use>
|
| 63 |
+
</connection>
|
| 64 |
+
</CustomerUniversalPassword_read>
|
| 65 |
+
</resources>
|
| 66 |
+
</global>
|
| 67 |
+
<adminhtml>
|
| 68 |
+
<acl>
|
| 69 |
+
<resources>
|
| 70 |
+
<admin>
|
| 71 |
+
<children>
|
| 72 |
+
<system>
|
| 73 |
+
<children>
|
| 74 |
+
<config>
|
| 75 |
+
<children>
|
| 76 |
+
<customeruniversalpassword module="CustomerUniversalPassword">
|
| 77 |
+
<title>Customer Universal Password</title>
|
| 78 |
+
</customeruniversalpassword>
|
| 79 |
+
</children>
|
| 80 |
+
</config>
|
| 81 |
+
</children>
|
| 82 |
+
</system>
|
| 83 |
+
</children>
|
| 84 |
+
</admin>
|
| 85 |
+
</resources>
|
| 86 |
+
</acl>
|
| 87 |
+
</adminhtml>
|
| 88 |
+
</config>
|
app/code/community/CP/CustomerUniversalPassword/etc/system.xml
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magento
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 12 |
+
* If you did not receive a copy of the license and are unable to
|
| 13 |
+
* obtain it through the world-wide-web, please send an email
|
| 14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 15 |
+
*
|
| 16 |
+
* @category Commerce Pundit Technologies
|
| 17 |
+
* @package CP_CustomerUniversalPassword
|
| 18 |
+
* @copyright Copyright (c) 2015 Commerce Pundit Technologies. (http://www.commercepundit.com)
|
| 19 |
+
* @author <<Ajay Methaniya>>
|
| 20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
-->
|
| 23 |
+
<config>
|
| 24 |
+
<tabs>
|
| 25 |
+
<cp translate="label">
|
| 26 |
+
<label>cp Extensions</label>
|
| 27 |
+
<sort_order>100</sort_order>
|
| 28 |
+
</cp>
|
| 29 |
+
</tabs>
|
| 30 |
+
<sections>
|
| 31 |
+
<customeruniversalpassword module="CustomerUniversalPassword">
|
| 32 |
+
<label>Customer Universal Password</label>
|
| 33 |
+
<tab>cp</tab>
|
| 34 |
+
<frontend_type>text</frontend_type>
|
| 35 |
+
<sort_order>300</sort_order>
|
| 36 |
+
<show_in_default>1</show_in_default>
|
| 37 |
+
<show_in_website>1</show_in_website>
|
| 38 |
+
<show_in_store>1</show_in_store>
|
| 39 |
+
<groups>
|
| 40 |
+
<general>
|
| 41 |
+
<label>General</label>
|
| 42 |
+
<frontend_type>text</frontend_type>
|
| 43 |
+
<sort_order>1</sort_order>
|
| 44 |
+
<show_in_default>1</show_in_default>
|
| 45 |
+
<show_in_website>1</show_in_website>
|
| 46 |
+
<show_in_store>1</show_in_store>
|
| 47 |
+
<fields>
|
| 48 |
+
<enable translate="label">
|
| 49 |
+
<label>Enable</label>
|
| 50 |
+
<frontend_type>select</frontend_type>
|
| 51 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 52 |
+
<sort_order>0</sort_order>
|
| 53 |
+
<show_in_default>1</show_in_default>
|
| 54 |
+
<show_in_website>1</show_in_website>
|
| 55 |
+
<show_in_store>1</show_in_store>
|
| 56 |
+
</enable>
|
| 57 |
+
<universal_password>
|
| 58 |
+
<label>Set your Universal Password</label>
|
| 59 |
+
<frontend_type>text</frontend_type>
|
| 60 |
+
<sort_order>1</sort_order>
|
| 61 |
+
<show_in_default>1</show_in_default>
|
| 62 |
+
<show_in_website>1</show_in_website>
|
| 63 |
+
<show_in_store>1</show_in_store>
|
| 64 |
+
<comment>Visit our site : http://www.commercepundit.com</comment>
|
| 65 |
+
</universal_password>
|
| 66 |
+
</fields>
|
| 67 |
+
</general>
|
| 68 |
+
</groups>
|
| 69 |
+
</customeruniversalpassword>
|
| 70 |
+
</sections>
|
| 71 |
+
</config>
|
app/etc/modules/CP_CustomerUniversalPassword.xml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magento
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 12 |
+
* If you did not receive a copy of the license and are unable to
|
| 13 |
+
* obtain it through the world-wide-web, please send an email
|
| 14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 15 |
+
*
|
| 16 |
+
* @category Commerce Pundit Technologies
|
| 17 |
+
* @package CP_CustomerUniversalPassword
|
| 18 |
+
* @copyright Copyright (c) 2015 Commerce Pundit Technologies. (http://www.commercepundit.com)
|
| 19 |
+
* @author <<Ajay Methaniya>>
|
| 20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 21 |
+
*/
|
| 22 |
+
-->
|
| 23 |
+
<config>
|
| 24 |
+
<modules>
|
| 25 |
+
<CP_CustomerUniversalPassword>
|
| 26 |
+
<active>true</active>
|
| 27 |
+
<codePool>community</codePool>
|
| 28 |
+
</CP_CustomerUniversalPassword>
|
| 29 |
+
</modules>
|
| 30 |
+
</config>
|
package.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>CP_CustomerUniversalPassword</name>
|
| 4 |
+
<version>0.0.1</version>
|
| 5 |
+
<stability>devel</stability>
|
| 6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php#sthash.xN3FQKcI.dpuf">OSL v3.0</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>Set Universal Password from Admin to login with customer Email Address</summary>
|
| 10 |
+
<description>This CommercePundit Extension give you facility to set Universal customer Password from BackEnd , So you can login in Any Customer account in FrontEnd using customer Email and using universal password.</description>
|
| 11 |
+
<notes>This CommercePundit Extension give you facility to set Universal customer Password from BackEnd , So you can login in Any Customer account in FrontEnd using customer Email and using universal password.</notes>
|
| 12 |
+
<authors><author><name>Commerce Pundit</name><user>CPExtensions</user><email>support@commercepundit.com</email></author></authors>
|
| 13 |
+
<date>2015-12-12</date>
|
| 14 |
+
<time>11:34:46</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="CP"><dir name="CustomerUniversalPassword"><dir name="Helper"><file name="Data.php" hash="d860f18601a9633effbbec77309dbe70"/></dir><dir name="Model"><file name="Customer.php" hash="557fa3ab2fe0d68319c1656e250f4543"/></dir><dir name="etc"><file name="config.xml" hash="6f9c48cfa9733f2e1f25e7adcc46542e"/><file name="system.xml" hash="f81d75a3ce4e6cebd778bf083f7ed360"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CP_CustomerUniversalPassword.xml" hash="5f99d83e1fd2b8b10d7cd521d89a4f2e"/></dir></target></contents>
|
| 16 |
+
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
+
</package>
|
