Application
class Application extends TwoFactorPlugin (View source)
HOTP and TOTP based two-factor authentication
Also known as Google, Authy, or OTP
Properties
static string | $id | ||
static bool | $showSubmit | Whether to show submit button in form |
from TwoFactorPlugin |
protected bool | $provided | from TwoFactorPlugin | |
protected string | $message | from TwoFactorPlugin | |
Template | $template | from TwoFactorPlugin | |
protected Google2FA | $google2fa |
Methods
bool
string
string
bool
static string
getName()
Get user visible name
static string
getDescription()
Get user visible description
Google2FA
getGoogle2fa()
No description
Details
__construct(TwoFactor $twofactor)
No description
string
getError()
Returns authentication error message
bool
check(ServerRequest $request)
Checks authentication, returns true on success
string
render(ServerRequest $request)
Renders user interface to enter two-factor authentication
string
setup(ServerRequest $request)
Renders user interface to configure two-factor authentication
bool
configure(ServerRequest $request)
Performs backend configuration
static string
getName()
Get user visible name
static string
getDescription()
Get user visible description
string
getAppId(bool $returnUrl)
Return an application ID
Either hostname or hostname with scheme.
Google2FA
getGoogle2fa()
No description