Xbasic

a5_setTwoFactorAuthenticationSettings Function

Syntax

p result = a5_setTwoFactorAuthenticationSettings(c userid, c json)

Arguments

useridCharacter

The user's user id

jsonCharacter

JSON string defining the two-factor options. For example:

{
    "requireTwoFactorAuthentication": true,
    "method": "Google Authenticator",
    "mobilePhone": "",
    "email": ""
}

Returns

resultPointer

An object with error and errorText (if error is .t.) as properties.

Description

Sets the two-factor authentication options.

See Also