소셜로그인 회원가입시 닉네임을 받아오지 못했을 때 SQL QUERY량이 증가하는 문제점 수정

This commit is contained in:
thisgun
2021-03-02 13:57:39 +09:00
parent 6365717c0d
commit 5a308040f1

View File

@ -26,6 +26,11 @@ $user_nick = social_relace_nick($user_profile->displayName);
$user_email = isset($user_profile->emailVerified) ? $user_profile->emailVerified : $user_profile->email;
$user_id = $user_profile->sid ? preg_replace("/[^0-9a-z_]+/i", "", $user_profile->sid) : get_social_convert_id($user_profile->identifier, $provider_name);
if(! $user_nick) {
$tmp = explode('_', $user_id);
$user_nick = $tmp[1];
}
//$is_exists_id = exist_mb_id($user_id);
//$is_exists_name = exist_mb_nick($user_nick, '');
$user_id = exist_mb_id_recursive($user_id);