Changeset 2028444
- Timestamp:
- 02/11/2019 11:54:48 AM (7 years ago)
- Location:
- yoti/trunk
- Files:
-
- 3 edited
-
YotiHelper.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
yoti.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
yoti/trunk/YotiHelper.php
r2027308 r2028444 457 457 $username = $this->generateUsername($profile); 458 458 $password = $this->generatePassword(); 459 $userProvidedEmail = $profile->getEmailAddress()->getValue(); 459 460 // Check that email is available and valid. 461 $userProvidedEmailCanBeUsed = FALSE; 462 if ($emailAttr = $profile->getEmailAddress()) { 463 $userProvidedEmail = $emailAttr->getValue(); 464 $userProvidedEmailCanBeUsed = is_email($userProvidedEmail) && !get_user_by('email', $userProvidedEmail); 465 } 466 460 467 // If user has provided an email address and it's not in use then use it, 461 468 // otherwise use Yoti generic email 462 $userProvidedEmailCanBeUsed = is_email($userProvidedEmail) && !get_user_by('email', $userProvidedEmail);463 469 $email = $userProvidedEmailCanBeUsed ? $userProvidedEmail : $this->generateEmail(); 464 470 … … 649 655 { 650 656 $wpYotiUid = NULL; 651 $email = $activityDetails->getProfile()->getEmailAddress()->getValue(); 657 $email = NULL; 658 659 if ($emailAttr = $activityDetails->getProfile()->getEmailAddress()) { 660 $email = $emailAttr->getValue(); 661 } 652 662 653 663 if ($email && !empty($emailConfig)) { -
yoti/trunk/readme.txt
r2027334 r2028444 6 6 Tested up to: 5.0 7 7 Requires PHP: 5.6 8 Stable tag: 1.2. 18 Stable tag: 1.2.2 9 9 License: GNU v3 10 10 License URI: https://www.gnu.org/licenses/gpl.txt … … 75 75 76 76 Here you can find the changes for each version: 77 78 1.2.2 79 80 Release Date - 11 February 2019 81 82 * Fixed login by email when email is not available 77 83 78 84 1.2.1 -
yoti/trunk/yoti.php
r2027308 r2028444 5 5 Plugin URI: https://wordpress.org/plugins/yoti/ 6 6 Description: Let Yoti users quickly register on your site. 7 Version: 1.2. 17 Version: 1.2.2 8 8 Author: Yoti SDK. 9 9 Author URI: https://yoti.com
Note: See TracChangeset
for help on using the changeset viewer.