Mmanos\Social\SocialController::getComplete PHP Метод

getComplete() публичный Метод

Complete login action.
public getComplete ( ) : Illuminate\Support\Facades\View
Результат Illuminate\Support\Facades\View
    public function getComplete()
    {
        $user_data = Session::get('mmanos.social.pending');
        if (empty($user_data) || !is_array($user_data)) {
            return Redirect::to(Session::pull('mmanos.social.onerror', '/'))->with(Config::get('laravel-social::error_flash_var'), 'There was a problem logging in to your account (10).');
        }
        $failed_fields = Session::get('mmanos.social.failed_fields');
        if (empty($failed_fields) || !is_array($failed_fields)) {
            return Redirect::to(Session::pull('mmanos.social.onerror', '/'))->with(Config::get('laravel-social::error_flash_var'), 'There was a problem logging in to your account (11).');
        }
        return View::make('laravel-social::social.complete', array('failed_fields' => $failed_fields, 'info' => array_get($user_data, 'user_info')));
    }