Social login | BUG & SOLUTION | gmail doesn't care about dot (period)

My fb account has; my google account has They're one gmail account only, but for Oneall are 2.

Suggestion 1, new function:

function clean_gmail_address ($user_email) {
if (preg_match('/(.*)@gmail.;com$/i', trim($user_email), $matches)) {
$user_email = str_replace('.', '', $matches[1]).'';
return $user_email;

Suggestion 2, use it in oa-social-login/includes/communication.php (oa_social_login_callback, line 180)

$user_email = clean_gmail_address($user_email);


  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited April 2019

    Hi Andrea,

    technically speaking and are two different email addresses. Removing the dots might merge accounts that are actually not related.

    Let's say I create this email:
    If the plugin would remove the dots, then it might merge my account and yours.


Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.