PHP Class app\main\controllers\AuthController

Inheritance: extends Controller
Exibir arquivo Open project: phalconslayer/slayer

Public Methods

Method Description
activateUser ( $token ) : mixed GET | This activates a user record to be able to login.
attemptToLogin ( ) : mixed POST | This handles the loging.
initialize ( )
logout ( ) : mixed GET, POST | This logouts the current session logged-in.
showLoginForm ( ) : mixed GET | This shows the login form.
showRegistrationForm ( ) : mixed GET | This shows the form to register.
storeRegistrationForm ( ) : mixed POST | This handles the registration with validation.

Method Details

activateUser() public method

GET | This activates a user record to be able to login.
public activateUser ( $token ) : mixed
return mixed

attemptToLogin() public method

POST | This handles the loging.
public attemptToLogin ( ) : mixed
return mixed

initialize() public method

public initialize ( )

logout() public method

GET, POST | This logouts the current session logged-in.
public logout ( ) : mixed
return mixed

showLoginForm() public method

GET | This shows the login form.
public showLoginForm ( ) : mixed
return mixed

showRegistrationForm() public method

GET | This shows the form to register.
public showRegistrationForm ( ) : mixed
return mixed

storeRegistrationForm() public method

POST | This handles the registration with validation.
public storeRegistrationForm ( ) : mixed
return mixed