Skip to content

Commit 808ac83

Browse files
committed
Merge branch 'develop'
2 parents b0f8f4b + 59bbef0 commit 808ac83

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

10up-experience.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: 10up Experience
44
* Plugin URI: https://github.com/10up/10up-experience
55
* Description: The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
6-
* Version: 1.13.0
6+
* Version: 1.13.1
77
* Author: 10up
88
* Author URI: https://10up.com
99
* License: GPLv2 or later
@@ -19,7 +19,7 @@
1919

2020
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
2121

22-
define( 'TENUP_EXPERIENCE_VERSION', '1.13.0' );
22+
define( 'TENUP_EXPERIENCE_VERSION', '1.13.1' );
2323
define( 'TENUP_EXPERIENCE_DIR', __DIR__ );
2424
define( 'TENUP_EXPERIENCE_FILE', __FILE__ );
2525

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).
44

5+
## [1.13.1] - 2024-12-12
6+
* Fix SSO bug with @10up.com emails
7+
58
## [1.13.0] - 2024-12-09
69

710
* Turn on Fueled SSO by default

includes/classes/SSO/SSO.php

+10
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,21 @@ public function process_client_login() {
229229
$user_id = false;
230230
$user = get_user_by( 'email', $email );
231231

232+
if ( ! $user ) {
233+
$short_email = str_replace( '@get10up.com', '@10up.com', $email );
234+
$user = get_user_by( 'email', $short_email );
235+
}
236+
232237
if ( ! $user && preg_match( '#@fueled\.com$#i', $email ) ) {
233238
// Check if fueled person had a 10up email
234239
$old_10up_email = str_replace( '@fueled.com', '@get10up.com', $email );
235240
$tenup_user = get_user_by( 'email', $old_10up_email );
236241

242+
if ( ! $tenup_user ) {
243+
$old_10up_email = str_replace( '@fueled.com', '@10up.com', $email );
244+
$tenup_user = get_user_by( 'email', $old_10up_email );
245+
}
246+
237247
if ( $tenup_user ) {
238248
// Turn off email change notification
239249
add_filter( 'send_email_change_email', '__return_false' );

0 commit comments

Comments
 (0)