TwoFactorAuthenticationsService
in package
implements
TwoFactorAuthenticationsServiceInterface
uses
MailerAwareTrait
Class TwoFactorAuthenticationsService
Table of Contents
Interfaces
- TwoFactorAuthenticationsServiceInterface
- Interface TwoFactorAuthenticationsServiceInterface
Properties
- $TwoFactorAuthentications : TwoFactorAuthenticationsTable
- TwoFactorAuthentications Table
Methods
- __construct() : mixed
- TwoFactorAuthenticationsService constructor.
- send() : void
- 認証コード送信
- verify() : bool
- 認証コード検証
Properties
$TwoFactorAuthentications
TwoFactorAuthentications Table
private
TwoFactorAuthenticationsTable
$TwoFactorAuthentications
Methods
__construct()
TwoFactorAuthenticationsService constructor.
public
__construct() : mixed
send()
認証コード送信
public
send(int $userId, string $email) : void
Parameters
- $userId : int
- $email : string
verify()
認証コード検証
public
verify(int $userId, string $code) : bool
Parameters
- $userId : int
- $code : string