Revision 409

Date:
2014/01/28 17:25:33
Author:
ahitrov
Revision Log:
Session data filles through stantart $keeper->_get_hash_from_profile method
Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/session/lib/session/AUTH/FaceBook.pm

     
    203 203 );
    204 204 }
    205 205 }
    206 my %data = (
    207 id => $user->id,
    208 name => $user->name,
    209 login => $user->login,
    210 status => $user->status,
    211 type => $user->type,
    212 ltime => time,
    213 avatar => 'https://graph.facebook.com/'.$info->{username}.'/picture',
    214 );
    215 $data{email} = $email if $email;
    206 my %data = session::Keeper::_get_hash_from_profile( $user );
    207 $data{avatar} ||= 'https://graph.facebook.com/'.$info->{username}.'/picture';
    208 $data{email} ||= $email if $email;
    216 209 $local_session->set( %data );
    217 210 } else {
    218 211 my %data = (