From 0249cf75e69178bc50d9edae7f880c81d28cda16 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Thu, 8 Sep 2022 01:07:05 +1000 Subject: [PATCH] Initial intx theme --- README.md | 1 + intx/login/register.ftl | 141 ++++++++++++++++++++++++++++++++++++ intx/login/theme.properties | 2 + 3 files changed, 144 insertions(+) create mode 100644 README.md create mode 100644 intx/login/register.ftl create mode 100644 intx/login/theme.properties diff --git a/README.md b/README.md new file mode 100644 index 0000000..a5e7657 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Keycloak Theme for email domain whitelisting plugin diff --git a/intx/login/register.ftl b/intx/login/register.ftl new file mode 100644 index 0000000..11e0cc2 --- /dev/null +++ b/intx/login/register.ftl @@ -0,0 +1,141 @@ +<#import "template.ftl" as layout> +<@layout.registrationLayout displayMessage=!messagesPerField.existsError('firstName','lastName','email','username','password','password-confirm'); section> + <#if section = "header"> + ${msg("registerTitle")} + <#elseif section = "form"> +
+
+
+ +
+
+ + + <#if messagesPerField.existsError('firstName')> + + ${kcSanitize(messagesPerField.get('firstName'))?no_esc} + + +
+
+ +
+
+ +
+
+ + + <#if messagesPerField.existsError('lastName')> + + ${kcSanitize(messagesPerField.get('lastName'))?no_esc} + + +
+
+ +
+
+ +
+
+ + + <#if messagesPerField.existsError('email')> + + ${kcSanitize(messagesPerField.get('email'))?no_esc} + + +
+
+ + <#if !realm.registrationEmailAsUsername> +
+
+ +
+
+ + + <#if messagesPerField.existsError('username')> + + ${kcSanitize(messagesPerField.get('username'))?no_esc} + + +
+
+ + + <#if passwordRequired??> +
+
+ +
+
+ + + <#if messagesPerField.existsError('password')> + + ${kcSanitize(messagesPerField.get('password'))?no_esc} + + +
+
+ +
+
+ +
+
+ + + <#if messagesPerField.existsError('password-confirm')> + + ${kcSanitize(messagesPerField.get('password-confirm'))?no_esc} + + +
+
+ + + <#if recaptchaRequired??> +
+
+
+
+
+ + + +
+ + \ No newline at end of file diff --git a/intx/login/theme.properties b/intx/login/theme.properties new file mode 100644 index 0000000..ca5bcb8 --- /dev/null +++ b/intx/login/theme.properties @@ -0,0 +1,2 @@ +parent=base +import=common/keycloak