\AclUser\ControllerAuthController

Class AuthController

Handles basic login/logout requests

Summary

Methods
Properties
Constants
onDispatch()
__construct()
loginAction()
logoutAction()
registerAction()
createNewUserAction()
confirmAccountAction()
resetPasswordAction()
changePasswordAction()
No public properties found
No constants found
No protected methods found
$entityManager
$authManager
$authService
$userManager
N/A
No private methods found
$viewRenderer
N/A

Properties

$entityManager

$entityManager : \Doctrine\ORM\EntityManager

Doctrine entity manager

Type

\Doctrine\ORM\EntityManager

$authManager

$authManager : \AclUser\Service\AuthManager

The AuthManager service that handles logic for this controller

Type

\AclUser\Service\AuthManager

$authService

$authService : \Zend\Authentication\AuthenticationService

Zend\Authentication\AuthenticationService which handles session persistence for authenticated user etc.

Type

\Zend\Authentication\AuthenticationService

$userManager

$userManager : \AclUser\Service\UserManager

UserManager Service handles logic related to authorised user

Type

\AclUser\Service\UserManager

$viewRenderer

$viewRenderer : \AclUser\Controller\Zend\View\Renderer\PhpRenderer

Instance that renders views

Type

\AclUser\Controller\Zend\View\Renderer\PhpRenderer

Methods

onDispatch()

onDispatch(\Zend\Mvc\MvcEvent  $e) 

Intercept on dispatch event to get view renderer

Parameters

\Zend\Mvc\MvcEvent $e

__construct()

__construct(\Doctrine\ORM\EntityManager  $entityManager, \AclUser\Service\AuthManager  $authManager, \Zend\Authentication\AuthenticationService  $authService, \AclUser\Service\UserManager  $userManager) 

Instantiate class with injected resources

Parameters

\Doctrine\ORM\EntityManager $entityManager

Doctrine entity manager

\AclUser\Service\AuthManager $authManager

where the

\Zend\Authentication\AuthenticationService $authService
\AclUser\Service\UserManager $userManager

loginAction()

loginAction() : \Zend\View\Model\ViewModel

Handle login request

Throws

\Exception

Returns

\Zend\View\Model\ViewModel

logoutAction()

logoutAction() : \AclUser\Controller\Zend\Http\PhpEnvironment\Response

Log user out, add confirmation message and redirect back to login page

Returns

\AclUser\Controller\Zend\Http\PhpEnvironment\Response

registerAction()

registerAction() : \Zend\View\Model\ViewModel

Allow new user to register with the system

Returns

\Zend\View\Model\ViewModel

createNewUserAction()

createNewUserAction() : \Zend\View\Model\ViewModel

Administrator creates a new user

Returns

\Zend\View\Model\ViewModel

confirmAccountAction()

confirmAccountAction() : \Zend\View\Model\ViewModel

Confirm that user has registered with own email Change user status from retired to active

Returns

\Zend\View\Model\ViewModel

resetPasswordAction()

resetPasswordAction() : \Zend\View\Model\ViewModel

Reset password after user has received e-mail after

Returns

\Zend\View\Model\ViewModel

changePasswordAction()

changePasswordAction() : \Zend\View\Model\ViewModel

Change password for logged in users

Returns

\Zend\View\Model\ViewModel