Changeset 1650791
- Timestamp:
- 05/04/2017 07:47:17 AM (9 years ago)
- Location:
- wsl-login-extends-naver/trunk
- Files:
-
- 3 edited
-
providers/Kakao.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wsl-login-extends-naver.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wsl-login-extends-naver/trunk/providers/Kakao.php
r1336761 r1650791 68 68 function getUserProfile() 69 69 { 70 $data = json_decode ( wp_json_encode($this->api->get("user/me")) ); 70 $params = array('property_keys'=>'kaccount_email'); 71 72 $this->api->decode_json = false; 73 $this->api->curl_header = array( 'Authorization: Bearer ' . $this->api->access_token ); 74 75 $data = json_decode($this->api->api("user/me", "POST", $params)); 71 76 72 77 if ( ! isset( $data->id ) ) { … … 77 82 $this->user->profile->displayName = @ $data->properties->nickname; 78 83 $this->user->profile->photoURL = @ $data->properties->thumbnail_image; 84 $email = @ $data->kaccount_email; 85 86 if( $email ){ 87 $this->user->profile->email = $email; 88 } 79 89 80 90 return $this->user->profile; -
wsl-login-extends-naver/trunk/readme.txt
r1480349 r1650791 6 6 Requires at least: 4.0 7 7 Tested up to: 4.4 8 Stable tag: 0.1. 18 Stable tag: 0.1.2 9 9 License: MIT License 10 10 License URI: http://opensource.org/licenses/MIT … … 49 49 == Changelog == 50 50 51 = 0.1.2 = 52 kakao 에서 이메일 주소를 받아올수 있도록 수정했습니다. ( kakao 개발자에서 설정해야 합니다. ) 53 51 54 = 0.1 = 52 55 첫번째 버전입니다. -
wsl-login-extends-naver/trunk/wsl-login-extends-naver.php
r1480349 r1650791 5 5 * Author: SIR Soft 6 6 * Author URI: http://sir.co.kr 7 * Version: 0.1. 17 * Version: 0.1.2 8 8 * Text Domain: SIR Soft 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.