\AclUser\ServiceAuthAdapter

Adapter used for authenticating user. It takes login and password on input and checks the database if there is a user with such login (email) and password.

If such user exists, the service returns its identity (email). The identity is saved to session and can be retrieved later with Identity view helper provided by ZF3.

Summary

Methods
Properties
Constants
__construct()
setEmail()
setPassword()
authenticate()
adapterCompleteSocialLogin()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$email
$userId
$password
$entityManager
N/A

Properties

$email

$email : string

User email.

Type

string

$userId

$userId : integer

User userId.

Type

integer

$password

$password : string

Password

Type

string

$entityManager

$entityManager : \AclUser\Service\Doctrine\ORM\EntityManager

Entity manager.

Type

\AclUser\Service\Doctrine\ORM\EntityManager

Methods

__construct()

__construct(\Doctrine\ORM\EntityManager  $entityManager) 

Constructor

Parameters

\Doctrine\ORM\EntityManager $entityManager

setEmail()

setEmail(string  $email) 

Sets user email.

Parameters

string $email

setPassword()

setPassword(string  $password) 

Sets password.

Parameters

string $password

authenticate()

authenticate() 

Performs an authentication attempt.

adapterCompleteSocialLogin()

adapterCompleteSocialLogin() : \Zend\Authentication\Result

Create and assign messages and success status to Zend\Authentication\Result;

Returns

\Zend\Authentication\Result