compile insert O4W2FA_EQUATES

Declare Function O4WUTIL_OTP


Equ O4W_2FA_CFG_ID$ To "CFG_O4W2FA"
Equ O4W_2FA_FIELD_ACTIVE$ To 1
Equ O4W_2FA_FIELD_ISSUER_NAME$ To 2
Equ O4W_2FA_FIELD_URL_FRAGMENT$ To 3
Equ O4W_2FA_FIELD_AUTHENTICATOR_EMAIL_SUBJECT$ To 4
Equ O4W_2FA_FIELD_AUTHENTICATOR_EMAIL_SUBJECT_DEFAULT$ To "Your OTP authenticator configuration email"
Equ O4W_2FA_FIELD_AUTHENTICATOR_EMAIL_TEXT$ To 5
Equ O4W_2FA_FIELD_AUTHENTICATOR_EMAIL_TEXT_DEFAULT$ To "Please click on the following link to generate your OTP authenticator software QR code: %1. Scan the QR code with your authenticator software. To log in, please use your existing credentials and this single-use OTP code: %2"
Equ O4W_2FA_FIELD_HOTP$ To 6
Equ O4W_2FA_FIELD_HASHMODE$ To 7
Equ O4W_2FA_FIELD_EXPIRING_TIME$ To 8
Equ O4W_2FA_FIELD_DIGITS$ To 9
Equ O4W_2FA_FIELD_EMAIL_SUBJECT$ To 10
Equ O4W_2FA_FIELD_EMAIL_SUBJECT_DEFAULT$ To "Your one-time password challenge"
Equ O4W_2FA_FIELD_EMAIL_TEXT$ To 11
Equ O4W_2FA_FIELD_EMAIL_TEXT_DEFAULT$ To "Here is your one-time generated password challenge.  Please enter it when prompted: %1"

Equ O4W_2FA_TYPE_NONE$ To 0
Equ O4W_2FA_TYPE_VALIDATOR$ To 1
Equ O4W_2FA_TYPE_EMAIL$ To 2
Equ O4W_2FA_TYPE_ALL$ To 9

Equ ACTION_CHECK_STATUS$ To ""
Equ ACTION_GENERATE_KEY$ To "1"
Equ ACTION_GENERATE_URL$ To "2"
Equ ACTION_CHECK_OTP$ To "3"
Equ ACTION_GENERATE_EMAIL$ To "4"
Equ ACTION_CHECK_EMAIL$ To "5"
Equ ACTION_ENROLL$ To "6"
Equ ACTION_DELETE$ To "7"

Equ ERR_MISSING_UNAME$ To "1"
Equ ERR_MISMATCH_UNAME$ To "2"
Equ ERR_MISSING_UINFO$ To "3"
Equ ERR_ALREADY_CONFIGURED$ To "4"
