Phosphorum\Controllers\SessionController::authorizeAction PHP Method

authorizeAction() public method

public authorizeAction ( ) : Phalcon\Http\ResponseInterface | void
return Phalcon\Http\ResponseInterface | void
    public function authorizeAction()
    {
        if (!$this->session->has('identity')) {
            $oauth = new OAuth($this->config->get('github', new Config()));
            return $oauth->authorize();
        }
        return $this->discussionsRedirect();
    }