|
@@ -20,7 +20,6 @@ registration_data(Props, facebook, Ori)->
|
|
|
BD -> list_to_tuple([list_to_integer(X) || X <- string:tokens(binary_to_list(BD), "/")]) end,
|
|
|
error_logger:info_msg("User Ori: ~p",[Ori]),
|
|
|
error_logger:info_msg("Props: ~p",[Props]),
|
|
|
- Id = proplists:get_value(<<"id">>, Props),
|
|
|
Email = email_prop(Props, facebook),
|
|
|
[UserName|_] = string:tokens(binary_to_list(Email),"@"), Cover = case proplists:get_value(<<"cover">>,Props) of undefined -> ""; P -> case proplists:get_value(<<"source">>,P#struct.lst) of undefined -> ""; C -> binary_to_list(C) end end,
|
|
|
Ori#user{ id = Email,
|