네이버 소셜 아이디로 가입시 이름을 가져오도록 수정
This commit is contained in:
@ -118,7 +118,7 @@ class Hybrid_Providers_Naver extends Hybrid_Provider_Model_OAuth2
|
||||
//$this->user->profile->identifier = (array_key_exists('enc_id',$data))?$data['enc_id']:"";
|
||||
$this->user->profile->identifier = (array_key_exists('id',$data))?$data['id']:"";
|
||||
$this->user->profile->age = (array_key_exists('age',$data))?$data['age']:"";
|
||||
$this->user->profile->displayName = '';
|
||||
$this->user->profile->username = (array_key_exists('name', $data)) ? $data['name'] : "";
|
||||
/*
|
||||
if( array_key_exists('email',$data) ){
|
||||
$tmp = explode("@", $data['email']);
|
||||
|
||||
@ -31,6 +31,7 @@ $user_id = $user_profile->sid ? preg_replace("/[^0-9a-z_]+/i", "", $user_profile
|
||||
$user_id = exist_mb_id_recursive($user_id);
|
||||
$user_nick = exist_mb_nick_recursive($user_nick, '');
|
||||
$is_exists_email = $user_email ? exist_mb_email($user_email, '') : false;
|
||||
$user_name = isset($user_profile->username) ? $user_profile->username : '';
|
||||
|
||||
// 불법접근을 막도록 토큰생성
|
||||
$token = md5(uniqid(rand(), true));
|
||||
|
||||
Reference in New Issue
Block a user