ADmad\HybridAuth\Controller\HybridAuthController::authenticated PHP 메소드

authenticated() 공개 메소드

Hyridauth's hauth_return_to is set to this action.
public authenticated ( ) : Response
리턴 Cake\Network\Response
    public function authenticated()
    {
        $user = $this->Auth->identify();
        if ($user) {
            $this->Auth->setUser($user);
            return $this->redirect($this->Auth->redirectUrl());
        }
        return $this->redirect($this->Auth->config('loginAction'));
    }