# IMPORTANT 2FA fields BEGIN
# IMPORTANT 2FA fields END
# Useful for providing an additional header styling image using css
#||define||dlg_type||verify_setup||
# DESIGN: 2FA
# Present an alternative dialog that does not require username or password re-entry
#
||if(equal(dlg_type,(verify_warn)))||
Multifactor Authentication
#
#

#
||ifdef||mfa_warning_text||
||mfa_warning_text||
||else||
In the near future multi factor authentication will become mandatory when using SurgeWeb.
||endif||
You will periodically be asked to re-enter your authentication code to keep your account safe.
Use an authentication app on your mobile device (eg Authy or Google Authenticator) to scan the QR code and enter the 6 digit code.
||else|| ||if(equal(dlg_type,(verify_setup)))||
Setup Multifactor Authentication
||ifdef||results||
||begin_list_results||
||result||
||end_list_results||
||endif||
Use an authentication app on your mobile device (eg Authy or Google Authenticator) to scan the QR code then enter the code below
Please enter the 6 digit code from your authentication app for
||mfa_account_to_verify||
||if(istrue(verify_warn))||
||endif||
#||if(istrue(or(mfa_backup_email,mfa_backup_sms)))||
||if(or(istrue(mfa_backup_email),istrue(mfa_backup_sms)))||
Alternatively use a backup method to receive a 2FA code:
||if(istrue(mfa_backup_sms))||SMS to phone||endif||
||if(and(istrue(mfa_backup_email),istrue(mfa_backup_sms)))|| or ||endif||
||if(istrue(mfa_backup_email))|| email to recovery addresss ||endif||
||endif||
||else|| ||if(equal(dlg_type,(backup_email)))||
||ifdef||results||
||begin_list_results||
||result||
||end_list_results||
||endif||
A verification code has been sent to your recovery email address
Please enter the 6 digit code from your email
||if(istrue(mfa_webtrust))||
Trust this browser
||endif||
#||if(istrue(or(mfa_backup_email,mfa_backup_sms)))||
||if(or(istrue(mfa_backup_email),istrue(mfa_backup_sms)))||
Alternatively use a backup method to receive a 2FA code:
||if(istrue(mfa_backup_sms))||SMS to phone||endif||
||if(and(istrue(mfa_backup_email),istrue(mfa_backup_sms)))|| or ||endif||
||if(istrue(mfa_backup_email))|| resend email ||endif||
||endif||
||else|| ||if(equal(dlg_type,(backup_sms)))||
||ifdef||results||
||begin_list_results||
||result||
||end_list_results||
||endif||
A verification code has been sent to your phone
Please enter the 6 digit code from your phone
||if(istrue(mfa_webtrust))||
Trust this browser
||endif||
#||if(istrue(or(mfa_backup_email,mfa_backup_sms)))||
||if(or(istrue(mfa_backup_email),istrue(mfa_backup_sms)))||
Alternatively use a backup method to receive a 2FA code:
||if(istrue(mfa_backup_sms))||resend SMS||endif||
||if(and(istrue(mfa_backup_email),istrue(mfa_backup_sms)))|| or ||endif||
||if(istrue(mfa_backup_email))|| email to recovery addresss ||endif||
||endif||
||else||
# Actually do the normal verification
Additional Verification is Required
||ifdef||results||
||begin_list_results||
||result||
||end_list_results||
||endif||
Please enter the 6 digit code from your authentication app for
||mfa_account_to_verify||
||if(istrue(mfa_webtrust))||
Trust this browser
||endif||
#||if(istrue(or(mfa_backup_email,mfa_backup_sms)))||
||if(or(istrue(mfa_backup_email),istrue(mfa_backup_sms)))||
Alternatively use a backup method to receive a 2FA code:
||if(istrue(mfa_backup_sms))||SMS to phone||endif||
||if(and(istrue(mfa_backup_email),istrue(mfa_backup_sms)))|| or ||endif||
||if(istrue(mfa_backup_email))|| email to recovery addresss ||endif||
||endif||
||endif|| ||endif|| ||endif|| ||endif||