public function oAuthLink()
    {
        $providerName = $_REQUEST["provider"];
        $userProfile = $this->getAuthProvider()->authenticate($providerName);

        $this->_getUser()->first_name = $userProfile->firstName;
        $this->_getUser()->last_name = $userProfile->lastName;
        $this->_getUser()->email = $userProfile->email;

        foreach (['login', 'register'] as $_action) {
            $form = $this->_getUser()->getForm($_action);

            if ($form->execute()) {
                $userLogin = User_Logins::instance()->getNew();
                $userLogin->id_user = $this->_getUser()->id;
                $userLogin->provider_name = $providerName;
                $userLogin->provider_uid = $userProfile->identifier;
                $userLogin->insert();


                $this->{'after' . ucfirst($_action) . 'Redirect'}();
            }
            $this->forms[$_action] = $form;
        }

        $this->setLoginMeta('login');
    }