class Invalid extends TwoFactorPlugin

Invalid two-factor authentication showing that configured choice is not available.

Properties

static string $id
static $showSubmit
protected TwoFactor $_twofactor from TwoFactorPlugin
protected bool $_provided from TwoFactorPlugin
protected string $_message from TwoFactorPlugin
Template $template from TwoFactorPlugin

Methods

__construct(TwoFactor $twofactor)

Creates object

string
getError()

Returns authentication error message

bool
check()

Checks authentication, returns true on success

string
render()

Renders user interface to enter two-factor authentication

string
setup()

Renders user interface to configure two-factor authentication

bool
configure()

Performs backend configuration

static string
getName()

Get user visible name

static string
getDescription()

Get user visible description

string
getAppId(bool $return_url)

Return an applicaiton ID

Details

in TwoFactorPlugin at line 50
__construct(TwoFactor $twofactor)

Creates object

Parameters

TwoFactor $twofactor TwoFactor instance

in TwoFactorPlugin at line 63
string getError()

Returns authentication error message

Return Value

string

at line 26
bool check()

Checks authentication, returns true on success

Return Value

bool

at line 36
string render()

Renders user interface to enter two-factor authentication

Return Value

string HTML code

in TwoFactorPlugin at line 103
string setup()

Renders user interface to configure two-factor authentication

Return Value

string HTML code

in TwoFactorPlugin at line 113
bool configure()

Performs backend configuration

Return Value

bool

at line 46
static string getName()

Get user visible name

Return Value

string

at line 56
static string getDescription()

Get user visible description

Return Value

string

in TwoFactorPlugin at line 147
string getAppId(bool $return_url)

Return an applicaiton ID

Either hostname or hostname with scheme.

Parameters

bool $return_url Whether to generate URL

Return Value

string