codeigniter-oauth2 icon indicating copy to clipboard operation
codeigniter-oauth2 copied to clipboard

Suggestion: Making "WindowsLive" get user email, first_name, last_name

Open harpreetsb opened this issue 10 years ago • 0 comments

here is my code suggestion that works with windowslive Outh to provide user email and name FILE - libraries/Provider/Windowslive.php Code

/* at line 49 the return array */
return array(
            'uid'       => $user->id,
            'name'      => $user->name,
            'nickname'  => url_title($user->name, '_', true),
            'first_name' => $user->first_name,
            'last_name' => $user->last_name,
            'email' => $user->emails,
//          'location'  => $user[''], # scope wl.postal_addresses is required
                                          # but won't be implemented by default
            'locale'    => $user->locale,
            'urls'      => array('Windows Live' => $user->link),
        );

harpreetsb avatar Apr 27 '15 09:04 harpreetsb