PHP Class App\Model\UserManager

Inheritance: extends Nette\Object, implements Nette\Security\IAuthenticator
Mostra file Open project: nette/sandbox Class Usage Examples

Public Methods

Method Description
__construct ( Context $database )
add ( $username, $email, $password ) : void Adds new user.
authenticate ( array $credentials ) : Identity Performs an authentication.

Method Details

__construct() public method

public __construct ( Context $database )
$database Nette\Database\Context

add() public method

Adds new user.
public add ( $username, $email, $password ) : void
return void

authenticate() public method

Performs an authentication.
public authenticate ( array $credentials ) : Identity
$credentials array
return Nette\Security\Identity