twoFactorAuthenticationRequired()
Overview
public boolean function twoFactorAuthenticationRequired(
required string ipAddress
, required string userAgent
)
Returns whether or not two factor authentication is required for the current user. This is a combination of whether or not the feature is enabled, whether or not authentication is enabled for the admin, whether or not authentication is enforced or enabled by the user and whether or not the user is already authenticated.
Arguments
Name | Type | Required | Description |
---|---|---|---|
ipAddress | string | Yes | The originating IP address of the request |
userAgent | string | Yes | The originating user agent of the request |