#* The server renders this HTML page in an end-user's browser when an OTP is required. Velocity variables (identified by the $ character) are generated at runtime by the server. Change text or formatting as needed. Modifying Velocity statements is not recommended as it may interfere with expected server behavior. *# #set( $messageKeyPrefix = "pingone.mfa.otp.required." ) #if($selectedDevice.type.toLowerCase() == "android" || $selectedDevice.type.toLowerCase() == "iphone") #set ($deviceMessageKey = "mobile") #else #set ($deviceMessageKey = ${selectedDevice.type.toLowerCase()}) #end #set( $deviceMessageKeyPrefix = "${deviceMessageKey}.$messageKeyPrefix" )
#if( ($allowChangeDevice == true && $devices.size() > 1) || ($allowChangeDevice == true && $devices.size() == 1 && $manualPairing == true))
#end
#if($errorMessage)
$errorMessage
#elseif($errorMessageKey)
$languagePackMessages.getMessage($messageKeyPrefix, $errorMessageKey)
#end
#set( $deviceIcon = $languagePackMessages.getMessage($deviceMessageKeyPrefix, "icon"))

# #if($deviceIcon == "sms")
#elseif($deviceIcon == "email")
#elseif($deviceIcon == "voice")
#elseif($deviceIcon == "mobile")
#end$languagePackMessages.getMessage($deviceMessageKeyPrefix,"header")

#if($deviceMessageKey == "mobile" && $selectedDevice.pushEnabled) $languagePackMessages.getMessage($deviceMessageKeyPrefix, "push.message") $languagePackMessages.getMessage($deviceMessageKeyPrefix, "push.message.retry") #else $languagePackMessages.getMessage($deviceMessageKeyPrefix, "message") #end
#if($deviceMessageKey != "totp" && $deviceMessageKey != "mobile")
$languagePackMessages.getMessage($deviceMessageKeyPrefix, "otp.sent.text")
$escape.escape($selectedDevice.target)
#end
#if($deviceMessageKey != "totp" && $deviceMessageKey != "mobile")
#end
$languagePackMessages.getMessage($messageKeyPrefix, "cancel.button.title")