Table of Contents
-
$app
: App
-
$context
: mixed
-
$tfa
: TwoFactorAuth
-
__call()
: mixed
-
__construct()
: mixed
-
__get()
: mixed
-
__invoke()
: mixed
-
createSecret()
: mixed
-
getQRCodeImage()
: mixed
-
getQRCodeImageAsDataUri()
: string
-
verifyCode()
: bool
-
initialize()
: mixed
$app
public
App
$app
$context
public
mixed
$context
$tfa
protected
TwoFactorAuth
$tfa
__call()
public
__call(mixed $name, mixed $arguments) : mixed
Parameters
-
$name
: mixed
-
-
$arguments
: mixed
-
Return values
mixed
—
__construct()
public
__construct(App $app[, mixed $context = null ]) : mixed
Parameters
-
$app
: App
-
-
$context
: mixed
= null
-
Return values
mixed
—
__get()
public
__get(mixed $name) : mixed
Parameters
-
$name
: mixed
-
Return values
mixed
—
__invoke()
public
__invoke(mixed $helper) : mixed
Parameters
-
$helper
: mixed
-
Return values
mixed
—
createSecret()
public
createSecret([int $length = 160 ]) : mixed
Parameters
-
$length
: int
= 160
-
Return values
mixed
—
getQRCodeImage()
public
getQRCodeImage(string $secret[, int $size = 150 ]) : mixed
Parameters
-
$secret
: string
-
-
$size
: int
= 150
-
Return values
mixed
—
getQRCodeImageAsDataUri()
public
getQRCodeImageAsDataUri(string $secret[, int $size = 150 ]) : string
Parameters
-
$secret
: string
-
-
$size
: int
= 150
-
Return values
string
—
verifyCode()
public
verifyCode(string $secret, string $code) : bool
Parameters
-
$secret
: string
-
-
$code
: string
-
Return values
bool
—
initialize()
protected
initialize() : mixed
Return values
mixed
—