{lang key='twofactorauth'}
{include file="$template/includes/flashmessage.tpl" align="center"}
{if $newbackupcode}
{include file="$template/includes/alert.tpl" type="success" msg="{lang key='twofabackupcodereset'}" textcenter=true}
{elseif $incorrect}
{include file="$template/includes/alert.tpl" type="error" msg="{lang key='twofa2ndfactorincorrect'}" textcenter=true}
{elseif $error}
{include file="$template/includes/alert.tpl" type="error" msg=$error textcenter=true}
{else}
{include file="$template/includes/alert.tpl" type="warning" msg="{lang key='twofa2ndfactorreq'}" textcenter=true}
{/if}