<@cSection class='pt-5'> <@cContainer class='mt-md-5 pt-md-5'> <@cRow class='justify-content-center align-items-center'> <@cCol class='12 col-sm-5'> <@cCard title='#i18n{mylutece.xpage.login_form.pageTitle}' titleClass='h2 ms-3' id='' > <@cForm action='${url_dologin}' class='mx-3 mt-md-5' > <#if list_authentications?exists> <#if error_message!=""><@cAlert class='warning' title=error_message dismissible=false>${error_detail} <#-- first display delegated authentications [oauth etc...]--> <#list list_authentications as authentication> <#if authentication.delegatedAuthentication> <@cField> ${authentication.authServiceName} <#-- display internal authentications [such as database]--> <#assign bHasInternalAuth = false /> <#if list_authentications?size != 1> <#list list_authentications as authentication> <#if !authentication.externalAuthentication && !authentication.delegatedAuthentication> <#if !bHasInternalAuth> <#assign bHasInternalAuth = true /> <@cField> <#if auth_provider?has_content && auth_provider = authentication.name>
<#else>
<#else> <#list list_authentications as authentication> <#if !authentication.externalAuthentication && !authentication.delegatedAuthentication> <#if !bHasInternalAuth> <#assign bHasInternalAuth = true /> <#if bHasInternalAuth> <@cField label='#i18n{mylutece.xpage.login_form.labelAccessCode}' for='username' required=true > <@cInput name='username' required=true maxlength=100 /> <@cField label='#i18n{mylutece.xpage.login_form.labelPassword}' for='password' required=true > <@cInput type='password' name='password' required=true /> <#if is_active_captcha>${captcha} <@cField class='row justify-content-center'> <@cBtn label='#i18n{mylutece.xpage.login_form.labelButton}' class='main' params='name="Submit"'> <@cIcon label='' class='lock' /> <@cField class='row justify-content-end me-2'> <#if url_new_account?has_content> <@cLink class='btn btn-main' label='' title='#i18n{mylutece.xpage.login_form.labelButtonCreateAccount}' href=url_new_account! > <@cIcon label='' class='plus' /> #i18n{mylutece.xpage.login_form.labelButtonCreateAccount}