<@cTpl>
<#if list_authentications??> <#if error_message?? && error_message != ''>
${error_message!} <#if error_details?? && error_details !=''>
${error_detail!}

#i18n{mylutece.xpage.login_form.pageTitle}

<#-- first display delegated authentications [oauth etc...]--> <#list list_authentications as authentication> <#if authentication.delegatedAuthentication> <#-- display internal authentications [such as database]--> <#assign bHasInternalAuth = false /> <#assign lostLoginUrl='' /> <#assign lostPasswordUrl='' /> <#if list_authentications?size != 1> <#list list_authentications as authentication> <#if !authentication.externalAuthentication && !authentication.delegatedAuthentication> <#if !bHasInternalAuth><#assign bHasInternalAuth = true />
<#else> <#list list_authentications as authentication> <#if !authentication.externalAuthentication && !authentication.delegatedAuthentication> <#if !bHasInternalAuth><#assign bHasInternalAuth = true /> <#assign lostPasswordUrl=authentication.getLostPasswordPageUrl() /> <#assign lostLoginUrl=authentication.getLostLoginPageUrl() /> <#if bHasInternalAuth>
<#if is_active_captcha>
${captcha}

#i18n{mylutece.xpage.login_form.labelNewAccount} <#if url_new_account?has_content> #i18n{mylutece.xpage.login_form.labelButtonCreateAccount}

<#if lostPasswordUrl??>#i18n{mylutece.xpage.login_form.labelButtonLostPassword} <#if lostLoginUrl??>#i18n{mylutece.xpage.login_form.labelButtonLostLogin}