Revision 245

Date:
2012/09/18 12:43:00
Author:
ahitrov
Revision Log:
Bug fix
Files:

Legend:

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

     
    145 145 delete $local_session->{facebook_redirect_url};
    146 146
    147 147 my @plugins = split (/[\ |\t]+/, $state->{plugins});
    148 my $name = Encode::encode('utf-8', $info->{name});
    148 149 if ( grep { $_ eq 'users' } @plugins ) {
    149 150 my $user = $keeper->{users}->get_profile( login => 'facebook:'.$info->{id} );
    150 151 unless ( ref $user ) {
    151 152 my $user_class = $state->{users}->profile_document_class;
    152 153 $user = $user_class->new( $keeper );
    153 154 $user->login( 'facebook:'.$info->{id} );
    154 my $name = Encode::encode('utf-8', $info->{name});
    155 155 $user->name( $name );
    156 156 $user->status( 1 );
    157 157 $user->type( 0 );