commit 5b3a1aa98326e2327ad16c4bd528219666aca8e9 Author: Denys Konovalov Date: Fri Dec 22 21:45:38 2023 +0100 Initial commit diff --git a/login/login.ftl b/login/login.ftl new file mode 100644 index 0000000..d66e6f7 --- /dev/null +++ b/login/login.ftl @@ -0,0 +1,116 @@ +<#import "template.ftl" as layout> +<@layout.registrationLayout displayMessage=!messagesPerField.existsError('username','password') displayInfo=realm.password && realm.registrationAllowed && !registrationDisabled??; section> + <#if section = "header"> + ${msg("loginAccountTitle")} - Cantor ID + <#elseif section = "form"> +
+ Benutzer mit einem GCG.Mail-Konto verwenden hier einfach ihre E-Mail-Zugangsdaten. +
+ <#if realm.password> +
+ <#if !usernameHidden??> +
+ + + + + <#if messagesPerField.existsError('username','password')> + + ${kcSanitize(messagesPerField.getFirstError('username','password'))?no_esc} + + + +
+ + +
+ + +
+ + +
+ + <#if usernameHidden?? && messagesPerField.existsError('username','password')> + + ${kcSanitize(messagesPerField.getFirstError('username','password'))?no_esc} + + + +
+ +
+
+ <#if realm.rememberMe && !usernameHidden??> +
+ +
+ +
+
+ <#if realm.resetPasswordAllowed> + ${msg("doForgotPassword")} + +
+ +
+ +
+ value="${auth.selectedCredential}"/> + +
+
+ +
+
+ + <#elseif section = "info" > + <#if realm.password && realm.registrationAllowed && !registrationDisabled??> +
+
+ ${msg("noAccount")} ${msg("doRegister")} +
+
+ + <#elseif section = "socialProviders" > + <#if realm.password && social.providers??> +
+
+

${msg("identity-provider-login-label")}

+ + +
+ + + + diff --git a/login/resources/css/styles.css b/login/resources/css/styles.css new file mode 100644 index 0000000..3de84e5 --- /dev/null +++ b/login/resources/css/styles.css @@ -0,0 +1,5 @@ +.login-pf body { + background-image: url('../img/image.jpg'); + background-size: cover; +} + diff --git a/login/resources/img/image.jpg b/login/resources/img/image.jpg new file mode 100644 index 0000000..9b8324b Binary files /dev/null and b/login/resources/img/image.jpg differ diff --git a/login/resources/img/logo.webp b/login/resources/img/logo.webp new file mode 100644 index 0000000..7e86146 Binary files /dev/null and b/login/resources/img/logo.webp differ diff --git a/login/template.ftl b/login/template.ftl new file mode 100644 index 0000000..d87b4a7 --- /dev/null +++ b/login/template.ftl @@ -0,0 +1,168 @@ +<#macro registrationLayout bodyClass="" displayInfo=false displayMessage=true displayRequiredFields=false> + + lang="${locale.currentLanguageTag}"> + + + + + + + <#if properties.meta?has_content> + <#list properties.meta?split(' ') as meta> + + + + ${msg("loginTitle",(realm.displayName!''))} + + <#if properties.stylesCommon?has_content> + <#list properties.stylesCommon?split(' ') as style> + + + + <#if properties.styles?has_content> + <#list properties.styles?split(' ') as style> + + + + <#if properties.scripts?has_content> + <#list properties.scripts?split(' ') as script> + + + + <#if scripts??> + <#list scripts as script> + + + + <#if authenticationSession??> + + + + + +
+
+
+ + +
+
+
+
+ <#if realm.internationalizationEnabled && locale.supported?size gt 1> +
+
+
+ ${locale.current} +
    + <#list locale.supported as l> +
  • + ${l.label} +
  • + +
+
+
+
+ + <#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())> + <#if displayRequiredFields> +
+
+ * ${msg("requiredFields")} +
+
+

<#nested "header">

+
+
+ <#else> +

<#nested "header">

+ + <#else> + <#if displayRequiredFields> +
+
+ * ${msg("requiredFields")} +
+
+ <#nested "show-username"> +
+ + + + +
+
+
+ <#else> + <#nested "show-username"> +
+ + + + +
+ + +
+
+
+ + <#-- App-initiated actions should not see warning messages about the need to complete the action --> + <#-- during login. --> + <#if displayMessage && message?has_content && (message.type != 'warning' || !isAppInitiatedAction??)> +
+
+ <#if message.type = 'success'> + <#if message.type = 'warning'> + <#if message.type = 'error'> + <#if message.type = 'info'> +
+ ${kcSanitize(message.summary)?no_esc} +
+ + + <#nested "form"> + + <#if auth?has_content && auth.showTryAnotherWayLink()> +
+ +
+ + + <#nested "socialProviders"> + + <#if displayInfo> +
+
+ <#nested "info"> +
+
+ +
+
+ +
+
+ + + diff --git a/login/theme.properties b/login/theme.properties new file mode 100644 index 0000000..b2e50a1 --- /dev/null +++ b/login/theme.properties @@ -0,0 +1,4 @@ +parent=keycloak +import=common/keycloak +styles=css/login.css css/styles.css +locales=de