Method | Description | |
---|---|---|
__construct ( Scheb\TwoFactorBundle\Model\PersisterInterface $persister, Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface $mailer, integer $digits ) | Construct the code generator service. | |
generateAndSend ( Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface $user ) | Generate a new authentication code an send it to the user. |
Method | Description | |
---|---|---|
generateCode ( integer $min, integer $max ) : integer | Generate authentication code. |
public __construct ( Scheb\TwoFactorBundle\Model\PersisterInterface $persister, Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface $mailer, integer $digits ) | ||
$persister | Scheb\TwoFactorBundle\Model\PersisterInterface | |
$mailer | Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface | |
$digits | integer |
public generateAndSend ( Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface $user ) | ||
$user | Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface |