Plugin Directory

Changeset 1650791


Ignore:
Timestamp:
05/04/2017 07:47:17 AM (9 years ago)
Author:
kagla
Message:

0.1.2 update

Location:
wsl-login-extends-naver/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wsl-login-extends-naver/trunk/providers/Kakao.php

    r1336761 r1650791  
    6868    function getUserProfile()
    6969    {
    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));
    7176
    7277        if ( ! isset( $data->id ) ) {
     
    7782        $this->user->profile->displayName = @ $data->properties->nickname;
    7883        $this->user->profile->photoURL    = @ $data->properties->thumbnail_image;
     84        $email = @ $data->kaccount_email;
     85
     86        if( $email ){
     87            $this->user->profile->email = $email;
     88        }
    7989
    8090        return $this->user->profile;
  • wsl-login-extends-naver/trunk/readme.txt

    r1480349 r1650791  
    66Requires at least: 4.0
    77Tested up to: 4.4
    8 Stable tag: 0.1.1
     8Stable tag: 0.1.2
    99License: MIT License
    1010License URI: http://opensource.org/licenses/MIT
     
    4949== Changelog ==
    5050
     51= 0.1.2 =
     52kakao 에서 이메일 주소를 받아올수 있도록 수정했습니다. ( kakao 개발자에서 설정해야 합니다. )
     53
    5154= 0.1 =
    5255첫번째 버전입니다.
  • wsl-login-extends-naver/trunk/wsl-login-extends-naver.php

    r1480349 r1650791  
    55 *  Author: SIR Soft
    66 *  Author URI: http://sir.co.kr
    7  *  Version: 0.1.1
     7 *  Version: 0.1.2
    88 *  Text Domain: SIR Soft
    99 */
Note: See TracChangeset for help on using the changeset viewer.