private function doCreateUser()
 {
     $image = '/storage/user_social_avatars/' . md5(Input::get('email')) . '.jpg';
     file_put_contents(public_path() . $image, file_get_contents(Input::get('photo')));
     $pass = str_random(12);
     $isEmailVerified = Input::get('verified_email') == -1 ? false : true;
     $user = Sentry::createUser(array('email' => Input::get('email'), 'password' => $pass, 'image' => $image, 'first_name' => Input::get('first_name'), 'last_name' => Input::get('last_name'), 'activated' => $isEmailVerified));
     $mailData = array('user' => array('full_name' => $user->getFullName(), 'activation_code' => $user->getActivationCode()), 'pass' => $pass);
     $template = $isEmailVerified ? 'verified_social_email' : 'non_verified_social_email';
     MailTemplate::ident($template)->send(Input::get('email'), $mailData);
     return $isEmailVerified;
 }