BaseProvider
in package
implements
TwoFactorProvider
Base class for 2-factor authentication providers.
Tags
Interfaces, Classes, Traits and Enums
- TwoFactorProvider
- 2-factor authentication
Table of Contents
- $config : mixed
- addCustomInput() : mixed
- Adds the custom input fields to the form.
- hasCustomInputForm() : has
- Returns if the service has a custom input form.
- isShowSubmitButton() : bool
- Returns if the submit button should be shown.
- getLoginAttributeValue() : string
- Returns the value of the user attribute in LDAP.
Properties
$config
protected
mixed
$config
Methods
addCustomInput()
Adds the custom input fields to the form.
public
addCustomInput(mixed &$row, mixed $userDn) : mixed
Parameters
- $row : mixed
-
row where to add the input fields
- $userDn : mixed
-
user DN
Tags
Return values
mixed —hasCustomInputForm()
Returns if the service has a custom input form.
public
hasCustomInputForm() : has
Tags
Return values
has —custom input form
isShowSubmitButton()
Returns if the submit button should be shown.
public
isShowSubmitButton() : bool
Tags
Return values
bool —show submit button
getLoginAttributeValue()
Returns the value of the user attribute in LDAP.
protected
getLoginAttributeValue(string $userDn) : string
Parameters
- $userDn : string
-
user DN
Return values
string —user name