attemptTwoFactorAuthentication()

Overview

public boolean function attemptTwoFactorAuthentication(
      required string token    
    , required string ipAddress
    , required string userAgent
)

Attempts authentication using a one time secret token generated by google authenticator app for the currently logged in user. Returns true on success.

Arguments

NameTypeRequiredDescription
tokenstringYesThe user provided one time token (should have been generated by authenticator app)
ipAddressstringYesThe IP address of the incoming request
userAgentstringYesThe user agent ot the incoming request