a-blog cms PHP API Reference

Tfa
in package

Table of Contents

Properties

$tfa  : mixed

Methods

__construct()  : mixed
Constructor
checkAuthority()  : bool
checkCorrectTime()  : bool
サーバー時間が正しいかチェック
createSecret()  : string
秘密鍵を作成
getSecretForManual()  : string
秘密鍵を表示
getSecretForQRCode()  : string
秘密鍵のQRコード画像を取得
getSecretKey()  : string|false
isAvailable()  : bool
isAvailableAccount()  : bool
verifyAccount()  : bool
verifyCode()  : bool
一時トークンが正しいかチェック

Properties

$tfa

protected mixed $tfa
Tags
@var

\RobThree\Auth\TwoFactorAuth;

Methods

__construct()

Constructor

public __construct(mixed $appName) : mixed
Parameters
$appName : mixed

checkAuthority()

public checkAuthority() : bool
Return values
bool

checkCorrectTime()

サーバー時間が正しいかチェック

public checkCorrectTime() : bool
Return values
bool

createSecret()

秘密鍵を作成

public createSecret() : string
Return values
string

getSecretForManual()

秘密鍵を表示

public getSecretForManual(string $secret) : string
Parameters
$secret : string

秘密鍵

Return values
string

getSecretForQRCode()

秘密鍵のQRコード画像を取得

public getSecretForQRCode(string $secret, string $label) : string
Parameters
$secret : string

秘密鍵

$label : string

ラベル

Return values
string

data:image

getSecretKey()

public getSecretKey(int $uid) : string|false
Parameters
$uid : int
Return values
string|false

isAvailable()

public isAvailable() : bool
Return values
bool

isAvailableAccount()

public isAvailableAccount(int $uid) : bool
Parameters
$uid : int
Return values
bool

verifyAccount()

public verifyAccount(int $uid, string $code) : bool
Parameters
$uid : int
$code : string
Return values
bool

verifyCode()

一時トークンが正しいかチェック

public verifyCode(string $secret, string $code) : bool
Parameters
$secret : string

秘密鍵

$code : string

一時トークン

Return values
bool

        
On this page

Search results