- Full name:
\App\Helper\TWFA
- Parent class:
\Lime\Helper
protected \RobThree\Auth\TwoFactorAuth $tfa
protected initialize(): mixed
public createSecret(int $length = 160): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$length |
int |
public getQRCodeImageAsDataUri(string $secret, int $size = 150): string
Parameters:
Parameter | Type | Description |
---|---|---|
$secret |
string | |
$size |
int |
public getQRCodeImage(string $secret, int $size = 150): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$secret |
string | |
$size |
int |
public verifyCode(string $secret, string $code): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$secret |
string | |
$code |
string |
public __construct(\Lime\App $app, mixed $context = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$app |
\Lime\App | |
$context |
mixed |
protected initialize(): mixed
public __call(mixed $name, mixed $arguments): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed | |
$arguments |
mixed |
public __invoke(mixed $helper): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$helper |
mixed |
public __get(mixed $name): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed |