Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
네이버 소셜 아이디로 가입시 이름을 가져오도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jun 5, 2018
1 parent 8deeb19 commit e996132
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/social/Hybrid/Providers/Naver.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function getUserProfile()
//$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']);
Expand Down
1 change: 1 addition & 0 deletions plugin/social/register_member.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
$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));
Expand Down
2 changes: 1 addition & 1 deletion skin/social/social_register_member.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url; ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="url" value="<?php echo $urlencode; ?>">
<input type="hidden" name="mb_name" value="<?php echo $user_nick; ?>" >
<input type="hidden" name="mb_name" value="<?php echo $user_name ? $user_name : $user_nick ?>" >
<input type="hidden" name="provider" value="<?php echo $provider_name;?>" >
<input type="hidden" name="action" value="register">

Expand Down

0 comments on commit e996132

Please sign in to comment.