PHP Class Nette\Security\SimpleAuthenticator

Inheritance: implements Nette\Security\IAuthenticator, use trait Nette\SmartObject
ファイルを表示 Open project: nette/security

Public Methods

Method Description
__construct ( array $userlist, array $usersRoles = [] )
authenticate ( array $credentials ) : Nette\Security\IIdentity Performs an authentication against e.g. database.

Method Details

__construct() public method

public __construct ( array $userlist, array $usersRoles = [] )
$userlist array
$usersRoles array

authenticate() public method

and returns IIdentity on success or throws AuthenticationException
public authenticate ( array $credentials ) : Nette\Security\IIdentity
$credentials array
return Nette\Security\IIdentity