100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Lost password template & email template
Robinebbf92c8a7c8
diff --git a/keycloak/theme/email/html/password-reset.ftl b/keycloak/theme/email/html/password-reset.ftlnew file mode 100755index 000000000..fafb51b0d--- /dev/null+++ b/keycloak/theme/email/html/password-reset.ftl@@ -0,0 +1,5 @@+<html>+<body>+<p>Someone just requested to change your ${(realmName!'')?html} account''s credentials. If this was you, click on the link below to reset them.</p><p><a href="${(link!'')?html}">${(link!'')?html}</a></p><p>This link will expire within ${(linkExpiration!'')?html} minutes.</p><p>If you don''t want to reset your credentials, just ignore this message and nothing will be changed.</p>+</body>+</html>\ No newline at end of filediff --git a/keycloak/theme/email/theme.properties b/keycloak/theme/email/theme.propertiesnew file mode 100644index 000000000..ca5bcb85a--- /dev/null+++ b/keycloak/theme/email/theme.properties@@ -0,0 +1,2 @@+parent=base+import=common/keycloakdiff --git a/keycloak/theme/login/login-reset-password.ftl b/keycloak/theme/login/login-reset-password.ftlnew file mode 100755index 000000000..f5c9756e6--- /dev/null+++ b/keycloak/theme/login/login-reset-password.ftl@@ -0,0 +1,30 @@+<#import "template.ftl" as layout>+<@layout.registrationLayout displayInfo=true; section>+ <#if section = "title">+ ${msg("emailForgotTitle")}+ <#elseif section = "header">+ ${msg("emailForgotTitle")}+ <#elseif section = "form">+ <form id="kc-reset-password-form" action="${url.loginAction}" method="post">+ <div class="layout horizontal center or-FormGroup">+ <div class="or-FormLabel">+ <label for="username" class="${properties.kcLabelClass!}"><#if !realm.loginWithEmailAllowed>${msg("username")}<#elseif !realm.registrationEmailAsUsername>${msg("usernameOrEmail")}<#else>${msg("email")}</#if></label>+ </div>+ <div class="or-FormField">+ <input type="text" id="username" name="username" autofocus/>+ </div>+ </div>+ <div class="layout horizontal center-center or-FormGroup">+ <span><a href="${url.loginUrl}">${msg("backToLogin")}</a></span>+ <div class="or-FormField">+ <input class="or-FormControl or-FormButtonPrimary or-PushButton" type="submit" value="${msg("doSubmit")}"/>+ </div>+ </div>+ </form>++ <#elseif section = "info" >+ <div class="layout horizontal center">+ ${msg("emailInstruction")}+ </div>+ </#if>+</@layout.registrationLayout>\ No newline at end of file