Class Socialveo\Frontend\controllers\AuthController

InheritanceSocialveo\Frontend\controllers\AuthController » Socialveo\Frontend\controllers\FrontendController » Phalcon\Mvc\Controller
Uses TraitsSocialveo\Core\Translatable

Class AuthController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
afterExecuteRoute() Socialveo\Frontend\controllers\FrontendController
beforeExecuteRoute() Before execute route Socialveo\Frontend\controllers\FrontendController
fire() Fire custom event Socialveo\Frontend\controllers\FrontendController
forgotPasswordAction() Forgot password action Socialveo\Frontend\controllers\AuthController
getEmbed() Embed getter method, if embed property is not set, fetches embed from request URL Socialveo\Frontend\controllers\FrontendController
getIsRequestPjax() Checks whether is requested via jquery.pjax Socialveo\Frontend\controllers\FrontendController
getLanguage() Gets language code Socialveo\Frontend\controllers\FrontendController
getParams() Gets $_REQUEST superglobal Socialveo\Frontend\controllers\FrontendController
getRequired() Get required param / params Socialveo\Frontend\controllers\FrontendController
getRequiredQuery() Get required param / params from $_GET Socialveo\Frontend\controllers\FrontendController
initialize() Initialize controller Socialveo\Frontend\controllers\AuthController
loginAction() Login Socialveo\Frontend\controllers\AuthController
logoutAction() Logout Socialveo\Frontend\controllers\AuthController
notFound() Not found action Socialveo\Frontend\controllers\FrontendController
partialRender() Renders partial view without layout Socialveo\Frontend\controllers\FrontendController
passwordRecoveryAction() Processes a password recovery request Socialveo\Frontend\controllers\AuthController
pick() Pick view Socialveo\Frontend\controllers\FrontendController
posts() Find posts and attach to page Socialveo\Frontend\controllers\FrontendController
redirectAction() Endpoint for auth via social networks Socialveo\Frontend\controllers\AuthController
registrationAction() Registration Socialveo\Frontend\controllers\AuthController
setDebugHeaders() Sets headers for debug XHR Socialveo\Frontend\controllers\FrontendController
setHttpCode() Set response Http code Socialveo\Frontend\controllers\FrontendController
socialLoginAction() Redirect social auth Socialveo\Frontend\controllers\AuthController
t() Gets translations Socialveo\Core\Translatable

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
checkAccess() Checks during the init of controller whether user is a guest. Socialveo\Frontend\controllers\FrontendController
checkIsAjax() Checks whether request is AJAX, redirect if false Usage in action: if (!$this->checkIsAjax()) { return false; } Socialveo\Frontend\controllers\FrontendController
getSocketData() Returns socket events Socialveo\Frontend\controllers\FrontendController
getTranslation() Gets translations Socialveo\Frontend\controllers\FrontendController
initAssets() Initialize assets Socialveo\Frontend\controllers\FrontendController
initViewVars() Sets view vars. Socialveo\Frontend\controllers\FrontendController
redirect() Redirect to url Socialveo\Frontend\controllers\FrontendController
reload() Reload the page Socialveo\Frontend\controllers\FrontendController
renderDefault() Render default page Socialveo\Frontend\controllers\FrontendController
respondWithArray() Returns an error response with an array Socialveo\Frontend\controllers\FrontendController
respondWithItem() Returns a response with a single item Socialveo\Frontend\controllers\FrontendController
respondWithStatus() Returns a response with status and message Socialveo\Frontend\controllers\FrontendController
responseError() Respond with error Socialveo\Frontend\controllers\FrontendController
responseJson() Response json Socialveo\Frontend\controllers\FrontendController
responseSuccess() Respond with success Socialveo\Frontend\controllers\FrontendController

Method Details

forgotPasswordAction() public method

Forgot password action

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface forgotPasswordAction ( )
throws Exception
initialize() public method

Initialize controller

public void initialize ( )
loginAction() public method

Login

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface loginAction ( )
throws Exception
logoutAction() public method

Logout

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface logoutAction ( )
passwordRecoveryAction() public method

Processes a password recovery request

public void passwordRecoveryAction ( $uuid )
$uuid

String recovery UUID is passed in the request URI.

return void

User is redirected to a url where he/she can set up a new password.

redirectAction() public method

Endpoint for auth via social networks

public void redirectAction ( )
registrationAction() public method

Registration

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface registrationAction ( $redirect '' )
$redirect string
throws Exception
socialLoginAction() public method

Redirect social auth

public Phalcon\Http\Response|Phalcon\Http\ResponseInterface socialLoginAction ( $provider )
$provider