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
email template, forgot password styling
Robin7cce61850d11
diff --git a/keycloak/theme/email/html/password-reset.ftl b/keycloak/theme/email/html/password-reset.ftlindex fafb51b0d..f9929f2b2 100755--- a/keycloak/theme/email/html/password-reset.ftl+++ b/keycloak/theme/email/html/password-reset.ftl@@ -1,5 +1,225 @@-<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>+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+ <html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">+ <meta name="format-detection" content="telephone=no" /> <!-- disable auto telephone linking in iOS -->+ <style type="text/css">+ html { background-color:#E1E1E1; margin:0; padding:0; }+ body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;}+ table{border-collapse:collapse;}+ table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;}+ img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;}+ a {text-decoration:none !important;border-bottom: 1px solid;}+ h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;}+ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */+ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */+ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */+ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */+ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */+ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */+ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */++ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;}+ h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;}+ h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;}+ h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;}+ .flexibleImage{height:auto;}+ .linkRemoveBorder{border-bottom:0 !important;}+ table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;}+ body, #bodyTable{background-color:#E1E1E1;}+ #emailHeader{background-color:#E1E1E1;}+ #emailBody{background-color:#FFFFFF;}+ #emailFooter{background-color:#E1E1E1;}+ .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;}+ .emailButton{background-color:#205478; border-collapse:separate;}+ .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;}+ .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;}+ .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;}+ .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;}+ .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;}+ .imageContentText {margin-top: 10px;line-height:0;}+ .imageContentText a {line-height:0;}+ #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */+ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */+ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;}+ span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;}++ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;}+ .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;}+ /* MOBILE STYLES */+ @media only screen and (max-width: 480px){+ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */++ table[id="emailHeader"],+ table[id="emailBody"],+ table[id="emailFooter"],+ table[class="flexibleContainer"],+ td[class="flexibleContainerCell"] {width:100% !important;}+ td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;}++ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; }+ img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;}+ img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;}++ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;}++ table[class="emailButton"]{width:100% !important;}+ td[class="buttonContent"]{padding:0 !important;}+ td[class="buttonContent"] a{padding:15px !important;}+ }+ </style>+ </head>+ <body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">+ <center style="background-color:#E1E1E1;">+ <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;">+ <tr>+ <td align="center" valign="top" id="bodyCell">+ <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody">+ <tr>+ <td align="center" valign="top">+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#374c4f">+ <tr>+ <td align="center" valign="top">++ <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer">+ <tr>+ <td align="center" valign="top" width="500" class="flexibleContainerCell">+ <table border="0" cellpadding="30" cellspacing="0" width="100%">+ <tr>+ <td align="center" valign="top" class="textContent">+ <h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">${(realmName!'')?html} Password</h1>+ </td>+ </tr>+ </table>++ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ <tr>+ <td align="center" valign="top">+ <table border="0" cellpadding="0" cellspacing="0" width="100%">+ <tr>+ <td align="center" valign="top">+ <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer">+ <tr>+ <td valign="top" width="500" class="flexibleContainerCell">+ <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">+ <tr>+ <td align="center" valign="top" class="flexibleContainerBox">+ <table border="0" cellpadding="0" cellspacing="0" width="420" style="max-width: 100%;">+ <tr>+ <td align="center" class="textContent">+ <div style="text-align:center;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">Someone just requested to change your ${(realmName!'')?html} account''s credentials. If this was you, click on the link below to reset them.</div>+ </td>+ </tr>+ </table>+ </td>++ </tr>+ </table>++ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ <tr>+ <td align="center" valign="top">+ <table border="0" cellpadding="0" cellspacing="0" width="100%">+ <tr style="padding-top:0;">+ <td align="center" valign="top">+ <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer">+ <tr>+ <td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell">+ <table border="0" cellpadding="0" cellspacing="0" width="50%" class="emailButton" style="background-color: #c1d72e;">+ <tr>+ <td align="center" valign="middle" class="buttonContent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;">+ <a style="color:#FFFFFF;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:135%;" href="${(link!'')?html}" target="_blank">Reset password</a>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ <tr mc:hideable>+ <td align="center" valign="top">+ <table border="0" cellpadding="0" cellspacing="0" width="100%">+ <tr>+ <td align="center" valign="top">+ <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer">+ <tr>+ <td valign="top" width="500" class="flexibleContainerCell">+ <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">+ <tr>+ <td align="center" valign="top" class="flexibleContainerBox">+ <table border="0" cellpadding="0" cellspacing="0" width="420" style="max-width: 100%;">+ <tr>+ <td align="center" class="textContent">+ <div style="text-align:center;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">This link will expire within ${(linkExpiration!'')?html} minutes.If you don''t want to reset your credentials, just ignore this message and nothing will be changed.</div>+ </td>+ </tr>+ </table>+ </td>++ </tr>+ </table>++ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ <table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter">+ <tr>+ <td align="center" valign="top">+ <table border="0" cellpadding="0" cellspacing="0" width="100%">+ <tr>+ <td align="center" valign="top">+ <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer">+ <tr>+ <td align="center" valign="top" width="500" class="flexibleContainerCell">+ <table border="0" cellpadding="30" cellspacing="0" width="100%">+ <tr>+ <td valign="top" bgcolor="#E1E1E1">++ <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;">+ <div><a href="http://www.openremote.com/" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">OpenRemote</span></a>. All rights reserved.</div>+ </div>++ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </td>+ </tr>+ </table>+ </center>+ </body></html>\ No newline at end of filediff --git a/keycloak/theme/login/login-reset-password.ftl b/keycloak/theme/login/login-reset-password.ftlindex f5c9756e6..2dc62b3b4 100755--- a/keycloak/theme/login/login-reset-password.ftl+++ b/keycloak/theme/login/login-reset-password.ftl@@ -15,7 +15,7 @@</div></div><div class="layout horizontal center-center or-FormGroup">- <span><a href="${url.loginUrl}">${msg("backToLogin")}</a></span>+ <span class="or-Hyperlink"><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>@@ -23,7 +23,7 @@</form><#elseif section = "info" >- <div class="layout horizontal center">+ <div class="layout horizontal center" style="margin: 1em;">${msg("emailInstruction")}</div></#if>diff --git a/keycloak/theme/login/login.ftl b/keycloak/theme/login/login.ftlindex 07c0a83bc..b47619b0a 100755--- a/keycloak/theme/login/login.ftl+++ b/keycloak/theme/login/login.ftl@@ -55,7 +55,7 @@</#if><div><#if realm.resetPasswordAllowed>- <span><a href="${url.loginResetCredentialsUrl}">${msg("doForgotPassword")}</a></span>+ <span class="or-Hyperlink"><a href="${url.loginResetCredentialsUrl}">${msg("doForgotPassword")}</a></span></#if></div></div>