The Index controller for HexAuth module.

Has actions for logging in and logging out users.

package HexAuth

 Methods

Gets the authentication service.

getAuthService() : \HexAuth\Controller\HexAuth\Service\Auth

Exceptions

\HexAuth\Controller\RuntimeExpcetion If the authentication service is not set.

Returns

\HexAuth\Controller\HexAuth\Service\Auth

The action used to show the login form and do login action.

indexAction() : \Zend\View\Model\ViewModel
routeName auth/login
redirectsTo home on successfull login

Returns

\Zend\View\Model\ViewModel

The logout action.

logoutAction() : void

Clears the authentication service.

routeName auth/logout
redirectsTo home

Sets the authentication service to use.

setAuthService($service) : \HexAuth\Controller\IndexController
fluent This method is part of a fluent interface and will return the same instance

Parameters

$service

HexAuth\Service\Auth The authentication service

Returns