Skip to content

Latest commit

 

History

History
294 lines (100 loc) · 2.21 KB

TWFA.md

File metadata and controls

294 lines (100 loc) · 2.21 KB

TWFA

Properties

tfa

protected \RobThree\Auth\TwoFactorAuth $tfa

Methods

initialize

protected initialize(): mixed

createSecret

public createSecret(int $length = 160): mixed

Parameters:

Parameter Type Description
$length int

getQRCodeImageAsDataUri

public getQRCodeImageAsDataUri(string $secret, int $size = 150): string

Parameters:

Parameter Type Description
$secret string
$size int

getQRCodeImage

public getQRCodeImage(string $secret, int $size = 150): mixed

Parameters:

Parameter Type Description
$secret string
$size int

verifyCode

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

Parameters:

Parameter Type Description
$secret string
$code string

Inherited methods

__construct

public __construct(\Lime\App $app, mixed $context = null): mixed

Parameters:

Parameter Type Description
$app \Lime\App
$context mixed

initialize

protected initialize(): mixed

__call

public __call(mixed $name, mixed $arguments): mixed

Parameters:

Parameter Type Description
$name mixed
$arguments mixed

__invoke

public __invoke(mixed $helper): mixed

Parameters:

Parameter Type Description
$helper mixed

__get

public __get(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed