attemptTwoFactorAuthentication()

Overview

public boolean function attemptTwoFactorAuthentication(
      required string token
)

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)