<@cTpl> <#-- ============ LEFT — FORM ============ --> <@cRow> <@cCol> <#assign loginCrumbItems = [{ 'title': 'Connexion', 'url': '' }]> <@cBreadCrumb home='Accueil' items=loginCrumbItems class='login-crumbs' /> <@cContainer> <@cTitle level=2 >Connectez-vous à votre espace <@cContainer> <@cRow> <@cCol cols='12 col-md-6 '> <#-- Email/password form --> <@cForm method='post' action='${url_dologin}' class='login-form' params='autocomplete="on"'> <@cInput type='hidden' name='page' value='mylutece' class='' /> <@cInput type='hidden' name='action' value='doLogin' class='' /> <@cInput type='hidden' name='token' value='${token}' class='' /> <#if error_message?? && error_message != ''><@cAlert type='warning' title='${error_message!}'><#if error_details?? && error_details !=''>${error_detail!} <#-- first display delegated authentications [oauth etc...] --> <#if list_authentications??> <#list list_authentications as authentication> <#if authentication.delegatedAuthentication> <@cBlock class='form-group'> <@cLink href='${url_dologin}?page=mylutece&action=dologin&auth_provider=${authentication.name}' label='' title='${authentication.authServiceName}'> <@cImg src='${authentication.iconUrl}' alt='${authentication.authServiceName}' /> <#-- 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 /> <@cRadio name='auth_provider' label='${authentication.authServiceName}' value='${authentication.name}' checked=(auth_provider?has_content && auth_provider == authentication.name) /> <#else> <#list list_authentications as authentication> <#if !authentication.externalAuthentication && !authentication.delegatedAuthentication> <#if !bHasInternalAuth><#assign bHasInternalAuth = true /> <@cInput type='hidden' name='auth_provider' value='${authentication.name}' class='' /> <#assign lostPasswordUrl=authentication.getLostPasswordPageUrl() /> <#assign lostLoginUrl=authentication.getLostLoginPageUrl() /> <#if bHasInternalAuth> <@cField label='#i18n{mylutece.xpage.login_form.labelAccessCode}' for='username' > <@cInputGroup> <@cInputGroupAddon> <@cIcon name='user' /> <@cInput name='username' id='username' placeholder='name@example.com' /> <@cInputPassword label='#i18n{mylutece.xpage.login_form.labelPassword}' name='password' icon='lock' id='password' placeholder='#i18n{mylutece.xpage.login_form.labelPassword}' helpMsg='#i18n{portal.theme.labelPasswordHelp}' /> <#if is_active_captcha>${captcha} <@cBtn class='primary' type='submit' label='#i18n{mylutece.xpage.login_form.labelButton}' nestedPos='after'> <@cIcon name='arrow-right' class='ms-2' /> <@cBlock class='lost-row'> <#if lostPasswordUrl??><@cLink href='${lostPasswordUrl!}' label='#i18n{mylutece.xpage.login_form.labelButtonLostPassword}' params='title="#i18n{mylutece.xpage.login_form.labelButtonLostPassword}"' /> <#if lostLoginUrl??><@cLink href='${lostLoginUrl!}' label='#i18n{mylutece.xpage.login_form.labelButtonLostLogin}' params='title="#i18n{mylutece.xpage.login_form.labelButtonLostLogin}"' /> <#if !bHasInternalAuth || (bHasInternalAuth && lostPasswordUrl??)> <#if url_new_account?has_content> <@cBlock class='signup-row'> <@cText class='mb-0'> <@cInline class='signup-row__txt'>Pas encore de compte ? <@cInline type='strong'>Créez-en un en 2 min. <@cLink href='${url_new_account}' label='#i18n{mylutece.xpage.login_form.labelButtonCreateAccount}' class='secondary' params='title="#i18n{mylutece.xpage.login_form.labelButtonCreateAccount}"' />