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

NameTypeRequiredDescription
ipAddressstringYesThe originating IP address of the request
userAgentstringYesThe originating user agent of the request