Version Notes
* Random email generation fixed
Download this release
Release Info
Developer | OneAll |
Extension | oneall_sociallogin |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
app/code/community/OneAll/SocialLogin/Helper/Data.php
CHANGED
@@ -33,23 +33,18 @@ class OneAll_SocialLogin_Helper_Data extends Mage_Core_Helper_Abstract
|
|
33 |
protected function create_random_email ()
|
34 |
{
|
35 |
$customer = Mage::getModel ('customer/customer');
|
36 |
-
$
|
37 |
-
|
38 |
-
// Website Id
|
39 |
-
if ($website_id)
|
40 |
-
{
|
41 |
-
$customer->setWebsiteId ($website_id);
|
42 |
-
}
|
43 |
|
44 |
do
|
45 |
{
|
46 |
// Create a random email.
|
47 |
-
$email = md5 (uniqid (
|
48 |
|
49 |
// Try to load a customer for it
|
50 |
$customer->loadByEmail ($email);
|
|
|
51 |
}
|
52 |
-
while (!
|
53 |
|
54 |
// Done
|
55 |
return $email;
|
@@ -174,11 +169,13 @@ class OneAll_SocialLogin_Helper_Data extends Mage_Core_Helper_Abstract
|
|
174 |
$email_is_random = true;
|
175 |
}
|
176 |
|
177 |
-
// Generate a random password.
|
178 |
-
$password = $customer->generatePassword (8);
|
179 |
-
|
180 |
// Create a new customer.
|
181 |
$customer = Mage::getModel ('customer/customer');
|
|
|
|
|
|
|
|
|
|
|
182 |
$customer->setFirstname ($data->user->identity->name->givenName);
|
183 |
$customer->setLastname ($data->user->identity->name->familyName);
|
184 |
$customer->setEmail ($email);
|
@@ -193,8 +190,9 @@ class OneAll_SocialLogin_Helper_Data extends Mage_Core_Helper_Abstract
|
|
193 |
// Do we have any errors?
|
194 |
if (is_array ($errors) && count ($errors) > 0)
|
195 |
{
|
196 |
-
|
197 |
-
|
|
|
198 |
}
|
199 |
|
200 |
// Save user.
|
33 |
protected function create_random_email ()
|
34 |
{
|
35 |
$customer = Mage::getModel ('customer/customer');
|
36 |
+
$customer->setWebsiteId (Mage::app ()->getWebsite ()->getId ());
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
do
|
39 |
{
|
40 |
// Create a random email.
|
41 |
+
$email = md5 (uniqid (rand (10000, 99000))) . "@example.com";
|
42 |
|
43 |
// Try to load a customer for it
|
44 |
$customer->loadByEmail ($email);
|
45 |
+
$id = $customer->getId ();
|
46 |
}
|
47 |
+
while (! empty ($id));
|
48 |
|
49 |
// Done
|
50 |
return $email;
|
169 |
$email_is_random = true;
|
170 |
}
|
171 |
|
|
|
|
|
|
|
172 |
// Create a new customer.
|
173 |
$customer = Mage::getModel ('customer/customer');
|
174 |
+
|
175 |
+
// Generate a password for the customer.
|
176 |
+
$password = $customer->generatePassword (8);
|
177 |
+
|
178 |
+
// Setup customer details.
|
179 |
$customer->setFirstname ($data->user->identity->name->givenName);
|
180 |
$customer->setLastname ($data->user->identity->name->familyName);
|
181 |
$customer->setEmail ($email);
|
190 |
// Do we have any errors?
|
191 |
if (is_array ($errors) && count ($errors) > 0)
|
192 |
{
|
193 |
+
// This would break it for Twitter users as they have no first/lastname
|
194 |
+
// Mage::getSingleton ('customer/session')->addError (implode (' ', $errors));
|
195 |
+
// return false;
|
196 |
}
|
197 |
|
198 |
// Save user.
|
app/code/community/OneAll/SocialLogin/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<OneAll_SocialLogin>
|
5 |
-
<version>1.1.
|
6 |
</OneAll_SocialLogin>
|
7 |
</modules>
|
8 |
|
@@ -109,4 +109,4 @@
|
|
109 |
</services>
|
110 |
</oneall_sociallogin>
|
111 |
</default>
|
112 |
-
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<OneAll_SocialLogin>
|
5 |
+
<version>1.1.1</version>
|
6 |
</OneAll_SocialLogin>
|
7 |
</modules>
|
8 |
|
109 |
</services>
|
110 |
</oneall_sociallogin>
|
111 |
</default>
|
112 |
+
</config>
|
app/etc/modules/OneAll_SocialLogin.xml
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
<OneAll_SocialLogin>
|
30 |
<active>true</active>
|
31 |
<codePool>community</codePool>
|
32 |
-
<version>1.1.
|
33 |
</OneAll_SocialLogin>
|
34 |
</modules>
|
35 |
-
</config>
|
29 |
<OneAll_SocialLogin>
|
30 |
<active>true</active>
|
31 |
<codePool>community</codePool>
|
32 |
+
<version>1.1.1</version>
|
33 |
</OneAll_SocialLogin>
|
34 |
</modules>
|
35 |
+
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>oneall_sociallogin</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU/GPL 2 or later</license>
|
7 |
<channel>community</channel>
|
@@ -10,12 +10,11 @@
|
|
10 |
<description>Social Login for Magento is a professional extension that allows your visitors to login and register with social networks like for example Twitter, Facebook, LinkedIn and PayPal.
|
11 |

|
12 |
It increases your user conversion rate by simplifying the registration process and provides permission-based social data retrieved from the social network profiles. </description>
|
13 |
-
<notes>*
|
14 |
-
|
15 |
-
<
|
16 |
-
<
|
17 |
-
<
|
18 |
-
<contents><target name="magecommunity"><dir name="OneAll"><dir name="SocialLogin"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="General.php" hash="e5256ba73e04a09ab90f4a39916427e0"/></dir></dir></dir></dir><file name="Login.php" hash="d2d7dbe46b407d8cc3dc369eca98a90a"/></dir><dir name="Helper"><file name="Data.php" hash="191fb1b0c70ac7ad0502581d78ac68bf"/></dir><dir name="Model"><file name="Apiautodetect.php" hash="fe32b304b9a3e15e45099328bf29bf31"/><file name="Apiconnectionhandler.php" hash="ec60111e5d8bfc1609d83f8532d6444f"/><file name="Apiconnectionport.php" hash="4120ddc8b175d91f2d3cb0a57488876b"/><file name="Apiverify.php" hash="98a6d6a98e096ab53cadd4cc30656de2"/><file name="Entity.php" hash="1f8fe3c8c52aa1a7d91e241aab5dc202"/><dir name="Mysql4"><dir name="Entity"><file name="Collection.php" hash="420f9e47f1a2429f9627e93b338b816d"/></dir><file name="Entity.php" hash="b2abd06f18048fe564c2b17cf30aed49"/></dir><file name="Services.php" hash="a4da3a4667fd11b9c376076cf840b55a"/><file name="Subdomain.php" hash="457ce6f3e41fe6eda7943270a07f250a"/></dir><dir name="controllers"><file name="AjaxController.php" hash="fc561a0262bdeb73de4c535b4030ffda"/></dir><dir name="etc"><file name="adminhtml.xml" hash="b2b2205da48b85a4002c84464a3c7555"/><file name="config.xml" hash="be0262e735e86b466fab9734f85ae5e7"/><file name="system.xml" hash="d2291d62cc6cc9a252a3f2833e76a130"/></dir><dir name="sql"><dir name="oneall_sociallogin_setup"><file name="mysql4-install-1.1.0.php" hash="e51670ff053f5391e6626ac9dd22769b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="oneall-sociallogin.xml" hash="741e14c02b790d4ab7b06c089dbb6973"/></dir><dir name="template"><dir name="oneall"><dir name="sociallogin"><file name="library.phtml" hash="81d9683ae5e0d67c4fba204e770fa25d"/><file name="login.phtml" hash="7e86303baa498c7840a7da61d2fdbdf0"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OneAll_SocialLogin.xml" hash="a50d33654c5b3d7f12f933d3f79ccca1"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="oneall"><file name="sociallogin.css" hash="b9ff1f97c2aa7d4cc1c188975f08e5bf"/></dir></dir></dir></dir></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><extension><name>curl</name><min></min><max></max></extension></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>oneall_sociallogin</name>
|
4 |
+
<version>1.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU/GPL 2 or later</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Social Login for Magento is a professional extension that allows your visitors to login and register with social networks like for example Twitter, Facebook, LinkedIn and PayPal.
|
11 |

|
12 |
It increases your user conversion rate by simplifying the registration process and provides permission-based social data retrieved from the social network profiles. </description>
|
13 |
+
<notes>* Random email generation fixed</notes>
|
14 |
+
<authors><author><name>OneAll</name><user>OneAll</user><email>support@oneall.com</email></author></authors>
|
15 |
+
<date>2015-02-23</date>
|
16 |
+
<time>16:45:40</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="OneAll"><dir name="SocialLogin"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="General.php" hash="e5256ba73e04a09ab90f4a39916427e0"/></dir></dir></dir></dir><file name="Login.php" hash="d2d7dbe46b407d8cc3dc369eca98a90a"/></dir><dir name="Helper"><file name="Data.php" hash="04a745249af655b49ed43cab8046d7a8"/></dir><dir name="Model"><file name="Apiautodetect.php" hash="fe32b304b9a3e15e45099328bf29bf31"/><file name="Apiconnectionhandler.php" hash="ec60111e5d8bfc1609d83f8532d6444f"/><file name="Apiconnectionport.php" hash="4120ddc8b175d91f2d3cb0a57488876b"/><file name="Apiverify.php" hash="98a6d6a98e096ab53cadd4cc30656de2"/><file name="Entity.php" hash="1f8fe3c8c52aa1a7d91e241aab5dc202"/><dir name="Mysql4"><dir name="Entity"><file name="Collection.php" hash="420f9e47f1a2429f9627e93b338b816d"/></dir><file name="Entity.php" hash="b2abd06f18048fe564c2b17cf30aed49"/></dir><file name="Services.php" hash="a4da3a4667fd11b9c376076cf840b55a"/><file name="Subdomain.php" hash="457ce6f3e41fe6eda7943270a07f250a"/></dir><dir name="controllers"><file name="AjaxController.php" hash="fc561a0262bdeb73de4c535b4030ffda"/></dir><dir name="etc"><file name="adminhtml.xml" hash="b2b2205da48b85a4002c84464a3c7555"/><file name="config.xml" hash="c5eaf7a2e6889410a73ed1daddf5c3d2"/><file name="system.xml" hash="d2291d62cc6cc9a252a3f2833e76a130"/></dir><dir name="sql"><dir name="oneall_sociallogin_setup"><file name="mysql4-install-1.1.0.php" hash="e51670ff053f5391e6626ac9dd22769b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="oneall-sociallogin.xml" hash="741e14c02b790d4ab7b06c089dbb6973"/></dir><dir name="template"><dir name="oneall"><dir name="sociallogin"><file name="library.phtml" hash="81d9683ae5e0d67c4fba204e770fa25d"/><file name="login.phtml" hash="7e86303baa498c7840a7da61d2fdbdf0"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OneAll_SocialLogin.xml" hash="c71b12ea1c1bbb09d99910259575532b"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="oneall"><file name="sociallogin.css" hash="b9ff1f97c2aa7d4cc1c188975f08e5bf"/></dir></dir></dir></dir></dir></target></contents>
|
|
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><extension><name>curl</name><min></min><max></max></extension></required></dependencies>
|
20 |
</package>
|