Commit afab4bb7 authored by Clément OUDOT's avatar Clément OUDOT

Force utf8 conversion for Facebook datas (#1322)

parent ea551610
......@@ -4,6 +4,7 @@ use strict;
use Mouse;
use URI::Escape;
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK PE_ERROR PE_BADCREDENTIALS);
use utf8;
our $VERSION = '2.0.0';
......@@ -85,6 +86,12 @@ sub extractFormInfo {
return PE_ERROR;
}
# Parse received datas
foreach ( keys %$datas ) {
utf8::encode $datas->{$_};
$self->logger->debug( "Facebook data $_: " . $datas->{$_} );
}
# Field to trace user
unless ( $datas->{ $self->conf->{facebookUserField} } ) {
$self->logger->error('Unable to get Facebook id');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment