SilverStripe\TOTP\Method
Enables time-based one-time password (TOTP) authentication for the silverstripe/mfa module.
Synopsis
class Method
implements
MethodInterface
{
- // members
- private static integer $code_length = 6;
- // methods
- public void getName()
- public void getURLSegment()
- public void getVerifyHandler()
- public void getRegisterHandler()
- public void getThumbnail()
- public void applyRequirements()
- public bool isAvailable()
- public void getUnavailableMessage()
- public int getCodeLength()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Implements
- SilverStripe\MFA\Method\MethodInterface
Members
private
- $code_length
—
int
The TOTP code length
Methods
public
- applyRequirements()
- getCodeLength() — Get the length of the TOTP code
- getName()
- getRegisterHandler()
- getThumbnail()
- getURLSegment()
- getVerifyHandler()
- isAvailable() — TOTP authentication is only available if the required environment variable is set to enable encryption.